Yi-Chi Shao
/
ECE4180Lab1Part1
test commit
Fork of ECE4180Lab1Part1 by
main.cpp
- Committer:
- tom00209
- Date:
- 2016-09-07
- Revision:
- 1:387e4f8ca9e0
- Parent:
- 0:cc2c1ca74f72
File content as of revision 1:387e4f8ca9e0:
#include "mbed.h" DigitalOut myled1(p21); DigitalIn inp(p30); //PwmOut myled3(p24); //test commit int main() { while (1) { if (inp < 0.1){ myled1 = 0; } else { myled1 = 1; } wait(0.2); // part 2 } }