T Umezawa
/
light3
3.3V Output
Diff: main.cpp
- Revision:
- 0:b62a2d623514
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 29 04:46:54 2020 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +DigitalOut conv(A3); +DigitalOut led1(D6); +DigitalOut led2(A4); + +int main() +{ + conv = 1; + while(1) { + led1 = 1; + led2 = 1; + wait(0.5); + led1 = 0; + led2 = 0; + wait(0.5); + } +} \ No newline at end of file