Skip to content

Commit 8abab31

Browse files
committed
ugfx: update gdisp drivers
1 parent 2a9d475 commit 8abab31

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/ugfx/drivers/gdisp/CUBE0414/gdisp_lld_CUBE0414.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
8585
setpin_reset(g, 1);
8686
gfxSleepMilliseconds(120);
8787

88-
write_cmd(g, CUBE0414_CONF_WR); // 1: Set write reg conf, 6 args, no delay:
88+
write_cmd(g, CUBE0414_CONF_WR); // 1: Set write reg conf, 4 args, no delay:
8989
write_data(g, CONFIG_CUBE0414_LED_T0H); // T0H Time: val * 10 ns
9090
write_data(g, CONFIG_CUBE0414_LED_T0L); // T0L Time: val * 10 ns
9191
write_data(g, CONFIG_CUBE0414_LED_T1H); // T1H Time: val * 10 ns

components/ugfx/drivers/gdisp/WS2812/gdisp_lld_WS2812.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
/*===========================================================================*/
3131

3232
#ifndef GDISP_SCREEN_WIDTH
33-
#define GDISP_SCREEN_WIDTH WS2812_X
33+
#define GDISP_SCREEN_WIDTH WS2812_X*WS2812_Y
3434
#endif
3535
#ifndef GDISP_SCREEN_HEIGHT
36-
#define GDISP_SCREEN_HEIGHT WS2812_Y
36+
#define GDISP_SCREEN_HEIGHT 1
3737
#endif
3838
#ifndef GDISP_INITIAL_CONTRAST
3939
#define GDISP_INITIAL_CONTRAST 100

main/Kconfig.projbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ endchoice
188188

189189
choice LED_LAYER_DIR
190190
prompt "LED Layer Direction"
191-
default LED_LAYER_H
191+
default LED_LAYER_H_ZI
192192
depends on ENABLE_VFX && (VFX_OUTPUT_WS2812 || VFX_OUTPUT_CUBE0414)
193193
help
194194
Select LED layer direction.

0 commit comments

Comments
 (0)