test sound

This commit is contained in:
2024-10-01 23:58:26 +03:00
parent 839da85dfe
commit dd6e05951b
6 changed files with 390 additions and 17 deletions

View File

@ -12,6 +12,7 @@
#include "Print.h"
#include "SimpleTimer.h"
#include "Indicator.h"
#include "Sound.h"
#define ballReact_value 10 // время реакции на вылет мяча
@ -86,6 +87,7 @@ void Robot_INIT() {
EEPROM_INIT();
setPosDefault();
UART3_START();
sound_init();
for (int i = 0; i < 10; ++i) {
// if ((i&1U)!=1 || i > 4) for test
@ -115,6 +117,7 @@ void BallEXT() {
void RobotTick() {
BallEXT_Handler();
led_tick();
sound_tick();
// No Ball Handler
if (currentInfo.state == RUN && millis() - noBallTimer > noBallTimeout) {