Skip to content

Commit e71519b

Browse files
add BAT_PWR init code
1 parent 05ad43b commit e71519b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,11 @@ Arduino_GFX *gfx = new Arduino_ST7789(bus, 39 /* RST */, 0 /* rotation */, true
689689

690690
#elif defined(WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41)
691691
#define GFX_DEV_DEVICE WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41
692+
#define DEV_DEVICE_INIT() \
693+
{ \
694+
pinMode(16 /* BAT_PWR */, OUTPUT); \
695+
digitalWrite(16 /* BAT_PWR */, HIGH); \
696+
}
692697
Arduino_DataBus *bus = new Arduino_ESP32QSPI(
693698
9 /* CS */, 10 /* SCK */, 11 /* D0 */, 12 /* D1 */, 13 /* D2 */, 14 /* D3 */);
694699
Arduino_GFX *g = new Arduino_RM690B0(bus, 21 /* RST */, 0 /* rotation */, 450 /* width */, 600 /* height */, 16 /* col offset 1 */, 0 /* row offset 1 */, 16 /* col offset 2 */, 0 /* row offset 2 */);

0 commit comments

Comments
 (0)