Added various bits, main reformatted. Added .get to class Servo to allow waiting for rotation before recording information.
Fork of Lab6_Basic by
main.cpp
- Committer:
- ziadeldebri
- Date:
- 2016-08-17
- Revision:
- 0:61b18b631f94
- Child:
- 3:b787aa49b900
File content as of revision 0:61b18b631f94:
#include "mbed.h" DigitalOut gpo(D0); DigitalOut led(LED_RED); int main() { while (true) { gpo = !gpo; // toggle pin led = !led; // toggle led wait(0.2f); } }