test

Dependencies:   mbed TrapezoidControl QEI

Committer:
M_souta
Date:
Tue Jul 16 06:48:51 2019 +0000
Revision:
19:96a462583af9
Parent:
16:3f2c2d89372b
test

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
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