Skip to content

Commit 347a453

Browse files
authored
Merge pull request #10410 from baldengineer/fix_heltec_v3_no_boot
Fixes REPL not booting on heltec_esp32s3_wifi_lora_v3
2 parents 4889165 + e02d221 commit 347a453

File tree

1 file changed

+4
-4
lines changed
  • ports/espressif/boards/heltec_esp32s3_wifi_lora_v3

1 file changed

+4
-4
lines changed

ports/espressif/boards/heltec_esp32s3_wifi_lora_v3/board.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ uint8_t display_init_sequence[] = { // SSD1306
3434
digitalio_digitalinout_obj_t display_on;
3535

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

4343
busio_i2c_obj_t *i2c = common_hal_board_create_i2c(0);
@@ -48,7 +48,7 @@ static void display_init(void) {
4848
bus,
4949
i2c,
5050
0x3c,
51-
NULL
51+
&pin_GPIO21 // broken-out on V3
5252
);
5353

5454
busdisplay_busdisplay_obj_t *display = &allocate_display()->display;

0 commit comments

Comments
 (0)