Skip to content

add & enable DISPLAY_VSENSOR_PIN if available (required for sense tft) #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/boards/boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ void board_display_init(void) {
//------------- Display Init -------------//
nrf_gpio_cfg_output(DISPLAY_PIN_DC);

#if defined(DISPLAY_VSENSOR_PIN) && DISPLAY_VSENSOR_PIN >= 0
nrf_gpio_cfg_output(DISPLAY_VSENSOR_PIN);
nrf_gpio_pin_write(DISPLAY_VSENSOR_PIN, DISPLAY_VSENSOR_ON);
#endif

#if defined(DISPLAY_PIN_RST) && DISPLAY_PIN_RST >= 0
nrf_gpio_cfg_output(DISPLAY_PIN_RST);
nrf_gpio_pin_clear(DISPLAY_PIN_RST);
Expand Down Expand Up @@ -771,4 +776,4 @@ static void tft_controller_init(void) {
}
}

#endif
#endif
5 changes: 5 additions & 0 deletions src/boards/feather_nrf52840_sense_tft/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
//--------------------------------------------------------------------+
// Display
//--------------------------------------------------------------------+

// VSensor required to power the display
#define DISPLAY_VSENSOR_PIN _PINNUM(1, 7)
#define DISPLAY_VSENSOR_ON 1

#define DISPLAY_CONTROLLER_ST7789

#define DISPLAY_PIN_SCK _PINNUM(0, 26)
Expand Down