aa

Dependencies:   mbed

Committer:
M_souta
Date:
Tue Oct 22 02:03:26 2019 +0000
Revision:
30:8f092276b2ba
Parent:
29:44d5454ce8fa
Child:
36:418ee5567687
iii

Who changed what in which revision?

UserRevisionLine numberNew 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 30:8f092276b2ba 25 #define LED_TAPE0_PIN PB_0
M_souta 30:8f092276b2ba 26 #define LED_TAPE1_PIN PC_1
M_souta 30:8f092276b2ba 27 #define LED_TAPE2_PIN PC_0
M_souta 30:8f092276b2ba 28 #define LED_TAPE3_PIN PC_3
M_souta 30:8f092276b2ba 29 #define LED_TAPE4_PIN PC_2
M_souta 29:44d5454ce8fa 30
t_yamamoto 0:669ef71cba68 31 class LED {
t_yamamoto 0:669ef71cba68 32 public:
t_yamamoto 0:669ef71cba68 33 static void Initialize();
M_souta 30:8f092276b2ba 34 static void TapeledMode(uint8_t index);
t_yamamoto 0:669ef71cba68 35 };
t_yamamoto 0:669ef71cba68 36 }
t_yamamoto 0:669ef71cba68 37
t_yamamoto 0:669ef71cba68 38 #endif