daad
Dependencies: mbed TrapezoidControl QEI
LED/LED.cpp@25:38d4964e8aad, 2019-09-17 (annotated)
- Committer:
- yabahiro
- Date:
- Tue Sep 17 03:46:34 2019 +0000
- Revision:
- 25:38d4964e8aad
- Parent:
- 0:669ef71cba68
das
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
t_yamamoto | 0:669ef71cba68 | 1 | #include "LED.h" |
t_yamamoto | 0:669ef71cba68 | 2 | |
t_yamamoto | 0:669ef71cba68 | 3 | #include "../System/Using.h" |
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 | DigitalOut boardLED[USE_LED_NUM] = { |
t_yamamoto | 0:669ef71cba68 | 9 | DigitalOut(LED_DEBUG0_PIN), |
t_yamamoto | 0:669ef71cba68 | 10 | DigitalOut(LED_DEBUG1_PIN), |
t_yamamoto | 0:669ef71cba68 | 11 | DigitalOut(LED_DEBUG2_PIN), |
t_yamamoto | 0:669ef71cba68 | 12 | DigitalOut(LED_MU_PIN), |
t_yamamoto | 0:669ef71cba68 | 13 | }; |
t_yamamoto | 0:669ef71cba68 | 14 | |
t_yamamoto | 0:669ef71cba68 | 15 | void LED::Initialize() { |
t_yamamoto | 0:669ef71cba68 | 16 | for(uint8_t i=0; i < USE_LED_NUM; i++) { |
t_yamamoto | 0:669ef71cba68 | 17 | boardLED[i] = LED_OFF; |
t_yamamoto | 0:669ef71cba68 | 18 | } |
t_yamamoto | 0:669ef71cba68 | 19 | } |
t_yamamoto | 0:669ef71cba68 | 20 | } |