大季 矢花
/
MB2019_main_11_19_yoru
aa
LED/LED.h@29:44d5454ce8fa, 2019-10-18 (annotated)
- Committer:
- M_souta
- Date:
- Fri Oct 18 22:33:25 2019 +0000
- Revision:
- 29:44d5454ce8fa
- Parent:
- 16:3f2c2d89372b
- Child:
- 30:8f092276b2ba
tt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
t_yamamoto | 0:669ef71cba68 | 1 | #ifndef LED_H_ |
t_yamamoto | 0:669ef71cba68 | 2 | #define LED_H_ |
t_yamamoto | 0:669ef71cba68 | 3 | |
t_yamamoto | 0:669ef71cba68 | 4 | #include "mbed.h" |
t_yamamoto | 0:669ef71cba68 | 5 | #include <stdint.h> |
t_yamamoto | 0:669ef71cba68 | 6 | |
t_yamamoto | 0:669ef71cba68 | 7 | namespace LED { |
t_yamamoto | 0:669ef71cba68 | 8 | extern DigitalOut boardLED[]; |
t_yamamoto | 0:669ef71cba68 | 9 | |
t_yamamoto | 0:669ef71cba68 | 10 | #define LED_ON 0 |
t_yamamoto | 0:669ef71cba68 | 11 | #define LED_OFF 1 |
t_yamamoto | 0:669ef71cba68 | 12 | |
M_souta | 29:44d5454ce8fa | 13 | // BOARD_DEBUG_LED |
M_souta | 29:44d5454ce8fa | 14 | #define LED_DEBUG0_PIN PD_2 |
M_souta | 29:44d5454ce8fa | 15 | #define LED_DEBUG1_PIN PC_12 |
M_souta | 29:44d5454ce8fa | 16 | #define LED_DEBUG2_PIN PA_15 |
M_souta | 29:44d5454ce8fa | 17 | #define LED_MU_PIN PB_7 |
t_yamamoto | 0:669ef71cba68 | 18 | |
t_yamamoto | 0:669ef71cba68 | 19 | #define LED_DEBUG0 LED::boardLED[0] |
t_yamamoto | 0:669ef71cba68 | 20 | #define LED_DEBUG1 LED::boardLED[1] |
t_yamamoto | 0:669ef71cba68 | 21 | #define LED_DEBUG2 LED::boardLED[2] |
t_yamamoto | 0:669ef71cba68 | 22 | #define LED_MU LED::boardLED[3] |
t_yamamoto | 0:669ef71cba68 | 23 | |
M_souta | 29:44d5454ce8fa | 24 | // LED |
M_souta | 29:44d5454ce8fa | 25 | #define LED_tape0_PIN PB_0 |
M_souta | 29:44d5454ce8fa | 26 | #define LED_tape1_PIN PC_1 |
M_souta | 29:44d5454ce8fa | 27 | #define LED_tape2_PIN PC_0 |
M_souta | 29:44d5454ce8fa | 28 | #define LED_tape3_PIN PC_3 |
M_souta | 29:44d5454ce8fa | 29 | #define LED_tape4_PIN PC_2 |
M_souta | 29:44d5454ce8fa | 30 | |
M_souta | 29:44d5454ce8fa | 31 | |
t_yamamoto | 0:669ef71cba68 | 32 | class LED { |
t_yamamoto | 0:669ef71cba68 | 33 | public: |
t_yamamoto | 0:669ef71cba68 | 34 | static void Initialize(); |
t_yamamoto | 0:669ef71cba68 | 35 | }; |
t_yamamoto | 0:669ef71cba68 | 36 | } |
t_yamamoto | 0:669ef71cba68 | 37 | |
t_yamamoto | 0:669ef71cba68 | 38 | #endif |