junk repo to test cli
Fork of mbed-os-example-mbed5-blinky by
main.cpp
- Committer:
- Bryce Himebaugh
- Date:
- 2018-01-25
- Revision:
- 58:f1306dbfb574
- Parent:
- 57:a3c0babfccea
File content as of revision 58:f1306dbfb574:
#include "mbed.h"
DigitalOut led1(LED1);
Serial pc(USBTX, USBRX);
DigitalIn button(PC_13);
// main() runs in its own thread in the OS
// Message to Bryce.
int main() {
while (true) {
if (button.read()) led1 = 1;
else led1=0;
// pc.putc(pc.getc());
//led1 = !led1;
//if (led1) {
// pc.printf("ON\n\r");
// wait(2);
// }
// else {
// pc.printf("OFF\n\r");
// wait(1);
// }
}
}
