![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
main.cpp
- Committer:
- boalinlai
- Date:
- 2016-09-07
- Revision:
- 1:2d92ecdbd38b
- Parent:
- 0:cc2c1ca74f72
File content as of revision 1:2d92ecdbd38b:
#include "mbed.h" DigitalOut myled1(p21); DigitalIn inp(p30); //admin test int main() { while (1) { if (inp < 0.1){ myled1 = 0; } else { myled1 = 1; } wait(0.2); // part 2 } }