diff --git a/basic_functions.h b/basic_functions.h index 2cb1197e852edf43ef3e29f73ec462b61610476d..75d34cec710790ec5dd90ea38ee7d5e555bd2787 100644 --- a/basic_functions.h +++ b/basic_functions.h @@ -117,29 +117,22 @@ void initial_led_show() { _println_("Waiting"); set_led_color(255,0,0); const int frequencySteps[] = {500, 700, 900, 1100, 900, 700}; - int counter = 0; for (int k=0; k<13; k++){ for (int i=0; i<FRONT_LED_NUM; i++){ front_strip.set_pixel_color(i,thk_LedStripController::Color(red, green, blue)); front_strip.show(); - tone(BUZZER_PIN, frequencySteps[counter%6], 500/FRONT_LED_NUM); delay(500/FRONT_LED_NUM); _print_("."); - counter++; } for (int i=0; i<FRONT_LED_NUM; i++){ front_strip.set_pixel_color(i,thk_LedStripController::Color(0, 0, 0)); front_strip.show(); - tone(BUZZER_PIN, frequencySteps[counter%6], 500/FRONT_LED_NUM); delay(500/FRONT_LED_NUM); _print_("."); - counter++; } red -= 20; green += 20; - counter++; } - noTone(BUZZER_PIN); } #endif \ No newline at end of file