File tree 2 files changed +11
-1
lines changed
feather_nrf52840_sense_tft
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,11 @@ void board_display_init(void) {
250
250
//------------- Display Init -------------//
251
251
nrf_gpio_cfg_output (DISPLAY_PIN_DC );
252
252
253
+ #if defined(DISPLAY_VSENSOR_PIN ) && DISPLAY_VSENSOR_PIN >= 0
254
+ nrf_gpio_cfg_output (DISPLAY_VSENSOR_PIN );
255
+ nrf_gpio_pin_write (DISPLAY_VSENSOR_PIN , DISPLAY_VSENSOR_ON );
256
+ #endif
257
+
253
258
#if defined(DISPLAY_PIN_RST ) && DISPLAY_PIN_RST >= 0
254
259
nrf_gpio_cfg_output (DISPLAY_PIN_RST );
255
260
nrf_gpio_pin_clear (DISPLAY_PIN_RST );
@@ -771,4 +776,4 @@ static void tft_controller_init(void) {
771
776
}
772
777
}
773
778
774
- #endif
779
+ #endif
Original file line number Diff line number Diff line change 50
50
//--------------------------------------------------------------------+
51
51
// Display
52
52
//--------------------------------------------------------------------+
53
+
54
+ // VSensor required to power the display
55
+ #define DISPLAY_VSENSOR_PIN _PINNUM(1, 7)
56
+ #define DISPLAY_VSENSOR_ON 1
57
+
53
58
#define DISPLAY_CONTROLLER_ST7789
54
59
55
60
#define DISPLAY_PIN_SCK _PINNUM(0, 26)
You can’t perform that action at this time.
0 commit comments