My ELEC2645 project. Nikollao Sulollari. 200804685
Dependencies: N5110 SoftPWM mbed
Diff: main.cpp
- Revision:
- 13:359d3aa66352
- Parent:
- 11:53caf3d944a9
- Child:
- 14:91ae0afe9037
diff -r 53caf3d944a9 -r 359d3aa66352 main.cpp --- a/main.cpp Thu Apr 28 16:29:06 2016 +0000 +++ b/main.cpp Thu Apr 28 22:04:15 2016 +0000 @@ -36,7 +36,7 @@ init_game(); ///initialize game calibrateJoystick(); ///calibrate joystick - ticker.attach(&timer_isr,0.1); ///attach ticker with ISR every 0.1 sec + ticker.attach(&timer_isr,0.04); ///attach ticker with ISR every 0.1 sec reset = level; ///set reset = level to check later if level has increased // buzzer.start(); //buzzer.write(0.5);