Skip to content

Commit

Permalink
LED changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hnzlmnn committed Jun 13, 2024
1 parent b15cbdf commit 2b0ae11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion components/troopers24-bsp
13 changes: 2 additions & 11 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@ _Noreturn void app_main(void) {
esp_restart();
}



/* Initialize the LEDs */
ws2812_init(GPIO_LED_DATA, 150);
const uint8_t led_off[15] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
const uint8_t led_off[3*NUM_LEDS];
memset((void *) led_off, 0, 3*NUM_LEDS);
ws2812_send_data(led_off, sizeof(led_off));

/* Enable the amplifier */
Expand Down Expand Up @@ -265,14 +264,6 @@ _Noreturn void app_main(void) {
ESP_LOGI(TAG, "SD card filesystem mounted");
}

/* Upgrade required for v1 firmware */
if (appfsExists("python")) {
ESP_LOGI(TAG, "Upgrading v1 firmware");
appfsRename("python", "python_tr23");
appfsRename("python", "battleship");
appfsRename("python", "gnuboy_troopers23");
}

/* Ensure the directories for the hatchery exist */
if (!create_dir("/internal")) {
ESP_LOGE(TAG, "Failed to create directory: /internal");
Expand Down

0 comments on commit 2b0ae11

Please sign in to comment.