From e9601a5adada7e6abe80f5d711a8adefc894dfeb Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 29 Apr 2014 16:38:43 +0200 Subject: speaker: Initial implementation --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') 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) { -- cgit v1.2.3