![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Sonar
Dependencies: mbed SDHC_FileSystem DS18B20_1wire HC_SR04_Ultrasonic_Library
Diff: main.cpp
- Revision:
- 0:a449396d32de
diff -r 000000000000 -r a449396d32de main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Sep 22 16:18:36 2016 +0000 @@ -0,0 +1,14 @@ +#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); + } +} \ No newline at end of file