Skip to content

Commit

Permalink
BENB add reset and backlight pin setup to pico
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Jan 6, 2025
1 parent c7257a6 commit 699780e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions grid_pico/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,15 @@ int main() {

uart_init(uart0, 2000000);

// Setup common stuff
gpio_init(GRID_PICO_LCD_RESET_PIN);
gpio_put(GRID_PICO_LCD_RESET_PIN, 1);
gpio_set_dir(GRID_PICO_LCD_RESET_PIN, GPIO_OUT);

gpio_init(GRID_PICO_LCD_BACKLIGHT_PIN);
gpio_set_dir(GRID_PICO_LCD_BACKLIGHT_PIN, GPIO_OUT);
gpio_put(GRID_PICO_LCD_BACKLIGHT_PIN, 0);

// Reset and launch second core
multicore_reset_core1();
multicore_launch_core1(core_1_main_entry);
Expand Down

0 comments on commit 699780e

Please sign in to comment.