My ELEC2645 project. Nikollao Sulollari. 200804685
Dependencies: N5110 SoftPWM mbed
Fork of Treasure_Hunt by
Diff: main.cpp
- Revision:
- 8:606a488fa720
- Parent:
- 7:f31a4b4beb91
- Child:
- 9:ce2d9c42edea
diff -r f31a4b4beb91 -r 606a488fa720 main.cpp --- a/main.cpp Mon Apr 04 12:20:42 2016 +0000 +++ b/main.cpp Mon Apr 18 09:59:32 2016 +0000 @@ -1,4 +1,3 @@ -//Fadia /** @file main.cpp @brief Game implementation @@ -19,9 +18,9 @@ ticker.attach(&timer_isr,0.1); ///attach ticker with ISR every 0.1 sec reset = level; ///set reset = level to check later if level has increased buzzer = 0.5; - buzzer.period(1/1000); + buzzer.period(1/4000); //buzzer.write(0.5); - + while (1) { if (g_timer_flag) {