彥隆 鄭
/
LGZDSensor
water sansor 1
main.cpp
- Committer:
- paris8022
- Date:
- 2017-10-27
- Revision:
- 1:06e9441a6f01
- Parent:
- 0:2b430503298a
File content as of revision 1:06e9441a6f01:
#include "mbed.h" DigitalOut ledpin(LED1); DigitalIn sensor_in(D7); int main(){ while(1) { // LEDs are ON ledpin = 1; wait(1.2); // LEDs are OFF ledpin = 0; wait(1.4); } }