Skip to content

Commit

Permalink
Update ST7262.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Spooks4576 committed Oct 31, 2024
1 parent 5aac4f1 commit 611d338
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main/vendor/drivers/ST7262.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,12 @@ esp_err_t lcd_st7262_init(void)
// Turn on the display
ret = esp_lcd_panel_disp_on_off(rgb_panel_handle, true);

// esp_rom_gpio_pad_select_gpio(2);
// gpio_set_direction(2, GPIO_MODE_OUTPUT);
#ifdef Crowtech_LCD
esp_rom_gpio_pad_select_gpio(2);
gpio_set_direction(2, GPIO_MODE_OUTPUT);

//gpio_set_level(2, 1);
gpio_set_level(2, 1);
#endif

ESP_LOGI(TAG, "ST7262 LCD panel initialized successfully");
return ESP_OK;
Expand Down

0 comments on commit 611d338

Please sign in to comment.