T Umezawa
/
light3
3.3V Output
main.cpp@0:b62a2d623514, 2020-12-29 (annotated)
- Committer:
- umezawa
- Date:
- Tue Dec 29 04:46:54 2020 +0000
- Revision:
- 0:b62a2d623514
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
umezawa | 0:b62a2d623514 | 1 | #include "mbed.h" |
umezawa | 0:b62a2d623514 | 2 | DigitalOut conv(A3); |
umezawa | 0:b62a2d623514 | 3 | DigitalOut led1(D6); |
umezawa | 0:b62a2d623514 | 4 | DigitalOut led2(A4); |
umezawa | 0:b62a2d623514 | 5 | |
umezawa | 0:b62a2d623514 | 6 | int main() |
umezawa | 0:b62a2d623514 | 7 | { |
umezawa | 0:b62a2d623514 | 8 | conv = 1; |
umezawa | 0:b62a2d623514 | 9 | while(1) { |
umezawa | 0:b62a2d623514 | 10 | led1 = 1; |
umezawa | 0:b62a2d623514 | 11 | led2 = 1; |
umezawa | 0:b62a2d623514 | 12 | wait(0.5); |
umezawa | 0:b62a2d623514 | 13 | led1 = 0; |
umezawa | 0:b62a2d623514 | 14 | led2 = 0; |
umezawa | 0:b62a2d623514 | 15 | wait(0.5); |
umezawa | 0:b62a2d623514 | 16 | } |
umezawa | 0:b62a2d623514 | 17 | } |