謙一 永井
/
SRC2018Auto
0910
debug.cpp@1:5f5d47a593bc, 2019-09-10 (annotated)
- Committer:
- kenboh
- Date:
- Tue Sep 10 09:30:41 2019 +0000
- Revision:
- 1:5f5d47a593bc
- Parent:
- 0:2a0c62e53e9c
SRC2018Auto
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Hase_jun | 0:2a0c62e53e9c | 1 | #include "debug.h" |
Hase_jun | 0:2a0c62e53e9c | 2 | #include "mbed.h" |
Hase_jun | 0:2a0c62e53e9c | 3 | |
Hase_jun | 0:2a0c62e53e9c | 4 | DigitalOut led[2] = {DigitalOut(D6),DigitalOut(D7)}; |
Hase_jun | 0:2a0c62e53e9c | 5 | |
Hase_jun | 0:2a0c62e53e9c | 6 | void LED (int led_num){//led_num=0or1 |
Hase_jun | 0:2a0c62e53e9c | 7 | led[led_num]=1; |
Hase_jun | 0:2a0c62e53e9c | 8 | } |
Hase_jun | 0:2a0c62e53e9c | 9 | |
Hase_jun | 0:2a0c62e53e9c | 10 | void F(){ |
Hase_jun | 0:2a0c62e53e9c | 11 | for(int i=0;i<100;i++){ |
Hase_jun | 0:2a0c62e53e9c | 12 | printf("test\r\n"); |
Hase_jun | 0:2a0c62e53e9c | 13 | } |
Hase_jun | 0:2a0c62e53e9c | 14 | } |