![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
aa
Dependencies: mbed TrapezoidControl QEI
LED/LED.h@42:4f9689c0a349, 2019-09-30 (annotated)
- Committer:
- yabahiro
- Date:
- Mon Sep 30 11:33:22 2019 +0000
- Revision:
- 42:4f9689c0a349
- Parent:
- 16:3f2c2d89372b
qq;
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 | |
kishibekairohan | 16:3f2c2d89372b | 13 | #define LED_DEBUG0_PIN PA_8 |
kishibekairohan | 16:3f2c2d89372b | 14 | #define LED_DEBUG1_PIN PB_10 |
kishibekairohan | 16:3f2c2d89372b | 15 | #define LED_DEBUG2_PIN PB_4 |
kishibekairohan | 16:3f2c2d89372b | 16 | #define LED_MU_PIN PB_5 |
t_yamamoto | 0:669ef71cba68 | 17 | |
t_yamamoto | 0:669ef71cba68 | 18 | #define LED_DEBUG0 LED::boardLED[0] |
t_yamamoto | 0:669ef71cba68 | 19 | #define LED_DEBUG1 LED::boardLED[1] |
t_yamamoto | 0:669ef71cba68 | 20 | #define LED_DEBUG2 LED::boardLED[2] |
t_yamamoto | 0:669ef71cba68 | 21 | #define LED_MU LED::boardLED[3] |
t_yamamoto | 0:669ef71cba68 | 22 | |
t_yamamoto | 0:669ef71cba68 | 23 | class LED { |
t_yamamoto | 0:669ef71cba68 | 24 | public: |
t_yamamoto | 0:669ef71cba68 | 25 | static void Initialize(); |
t_yamamoto | 0:669ef71cba68 | 26 | }; |
t_yamamoto | 0:669ef71cba68 | 27 | } |
t_yamamoto | 0:669ef71cba68 | 28 | |
t_yamamoto | 0:669ef71cba68 | 29 | #endif |