mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 13:19:41 +00:00
test sound
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user