We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bad2ce + 645108c commit 99daea0Copy full SHA for 99daea0
components/nofrendo-esp32/spi_lcd.c
@@ -50,8 +50,14 @@
50
#define LCD_SEL_DATA() GPIO.out_w1ts = (1 << PIN_NUM_DC) // High to send data
51
#define LCD_RST_SET() GPIO.out_w1ts = (1 << PIN_NUM_RST)
52
#define LCD_RST_CLR() GPIO.out_w1tc = (1 << PIN_NUM_RST)
53
+
54
+#ifdef CONFIG_WROVER_KIT_V1
55
#define LCD_BKG_ON() GPIO.out_w1ts = (1 << PIN_NUM_BCKL) // Backlight ON
-#define LCD_BKG_OFF() GPIO.out_w1tc = (1 << PIN_NUM_BCKL) //Backlight OFF
56
+#define LCD_BKG_OFF() GPIO.out_w1tc = (1 << PIN_NUM_BCKL) // Backlight OFF
57
+#else
58
+#define LCD_BKG_ON() GPIO.out_w1tc = (1 << PIN_NUM_BCKL) // Backlight ON
59
+#define LCD_BKG_OFF() GPIO.out_w1ts = (1 << PIN_NUM_BCKL) // Backlight OFF
60
+#endif
61
62
63
#define SPI_NUM 0x3
0 commit comments