![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
main.cpp
- Committer:
- aidanPJG
- Date:
- 2015-06-30
- Revision:
- 2:7d53e9959b8f
- Parent:
- 1:860a22e395c9
- Child:
- 3:1ef4740c5a64
File content as of revision 2:7d53e9959b8f:
#include "mbed.h" Serial pc(USBTX, USBRX); // tx, rx DigitalIn input(p8); DigitalOut led(LED1); int main() { pc.printf("new program \n"); while(1) { if (input == 1) { pc.printf("true \n"); led = 1; } else { pc.printf("true \n"); led = 0; } } }