Skip to content
Merged
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
8 changes: 4 additions & 4 deletions ports/espressif/boards/heltec_esp32s3_wifi_lora_v3/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ uint8_t display_init_sequence[] = { // SSD1306
digitalio_digitalinout_obj_t display_on;

static void display_init(void) {
// Need to bring GPIO21 high or the screen doesn't get power
// Need to bring GPIO36 high or the screen doesn't get power
// & the board can't see the i2c bus at all.
common_hal_digitalio_digitalinout_construct(&display_on, &pin_GPIO21);
common_hal_digitalio_digitalinout_switch_to_output(&display_on, true, DRIVE_MODE_PUSH_PULL);
common_hal_digitalio_digitalinout_construct(&display_on, &pin_GPIO36);
common_hal_digitalio_digitalinout_switch_to_output(&display_on, false, DRIVE_MODE_PUSH_PULL);
common_hal_digitalio_digitalinout_never_reset(&display_on);

busio_i2c_obj_t *i2c = common_hal_board_create_i2c(0);
Expand All @@ -48,7 +48,7 @@ static void display_init(void) {
bus,
i2c,
0x3c,
NULL
&pin_GPIO21 // broken-out on V3
);

busdisplay_busdisplay_obj_t *display = &allocate_display()->display;
Expand Down