File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ports/espressif/boards/heltec_esp32s3_wifi_lora_v3 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ uint8_t display_init_sequence[] = { // SSD1306
34
34
digitalio_digitalinout_obj_t display_on ;
35
35
36
36
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
38
38
// & 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 );
41
41
common_hal_digitalio_digitalinout_never_reset (& display_on );
42
42
43
43
busio_i2c_obj_t * i2c = common_hal_board_create_i2c (0 );
@@ -48,7 +48,7 @@ static void display_init(void) {
48
48
bus ,
49
49
i2c ,
50
50
0x3c ,
51
- NULL
51
+ & pin_GPIO21 // broken-out on V3
52
52
);
53
53
54
54
busdisplay_busdisplay_obj_t * display = & allocate_display ()-> display ;
You can’t perform that action at this time.
0 commit comments