
test
main.cpp
- Committer:
- chauvoluuhuong
- Date:
- 2017-08-07
- Revision:
- 0:2e29df975b6f
File content as of revision 0:2e29df975b6f:
#include "mbed.h" // define the Serial object Serial pc(USBTX, USBRX); DigitalOut led1(PD_14); int main() { pc.baud(115200); while (true) { led1 = !led1; // Print something over the serial connection pc.printf("Blink! LED is now %d\r\n", led1.read()); wait(1); } }