
hello
main.cpp
- Committer:
- davinci26
- Date:
- 2018-01-26
- Revision:
- 1:48f2481a3715
- Parent:
- 0:903b088ceb3e
File content as of revision 1:48f2481a3715:
#include "mbed.h" // Ping // define the Serial object Serial pc(USBTX, USBRX); DigitalOut led1(LED1); int main() { while (true) { led1 = !led1; // Print something over the serial connection pc.printf("Blink! LED is now %d\r\n", led1.read()); wait(0.5); } }