aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index a581ea8..608327c 100644
--- a/main.c
+++ b/main.c
@@ -13,6 +13,7 @@
#include "timer.h"
#include "gyro.h"
#include "accel.h"
+#include "speaker.h"
static void ledInit () {
/* set led1,led2 to output */
@@ -49,6 +50,7 @@ int main () {
uartInit ();
gyroInit ();
accelInit ();
+ speakerInit ();
set_sleep_mode (SLEEP_MODE_IDLE);
printf ("initialization done\n");
@@ -58,6 +60,10 @@ int main () {
gyroStart ();
accelStart ();
+ speakerStart ();
+ _delay_ms (200);
+ speakerStop ();
+
timerStart ();
bool checkGyro = false;
while (1) {