Starting point for the student buggy project
Fork of microbit-hello-world by
Diff: main.cpp
- Revision:
- 4:2d939ef2b09c
- Parent:
- 3:c3a42966b47c
- Child:
- 5:a33f016d5962
--- a/main.cpp Mon Jul 31 22:24:03 2017 +0000 +++ b/main.cpp Sun Aug 06 20:13:33 2017 +0000 @@ -26,26 +26,10 @@ #include "Buggy.h" -void onButtonA(MicroBitEvent); int main(); void SelfTest(); void DisplaySonarTiming(); -MicroBitButton buttonA(MICROBIT_PIN_BUTTON_A, MICROBIT_ID_BUTTON_A); -MicroBitButton buttonB(MICROBIT_PIN_BUTTON_B, MICROBIT_ID_BUTTON_B); - - -void onButtonA(MicroBitEvent evt) -{ - if(evt.value == MICROBIT_BUTTON_EVT_CLICK) - { - - } -} - - - - int main() { //Initialise the micro:bit runtime. @@ -55,6 +39,7 @@ //SelfTest(); //Print the sonar time //DisplaySonarTiming(); + MotorSpeedCharacterisation();