
to check out local tool chain for debugging purpose
main.cpp
- Committer:
- Superkian
- Date:
- 2016-09-25
- Revision:
- 0:f83e6bf569ae
- Child:
- 1:e212820b1d24
File content as of revision 0:f83e6bf569ae:
#include "mbed.h" DigitalOut myled(LED1); DigitalIn switchInput(PTB16); int main() { static uint8_t led_mode=1; while(1) { if (switchInput==1) { myled.write(1); } else { myled.write(0); } } }