大季 矢花
/
MB2019_main_11_19_yoru
aa
Diff: LED/LED.h
- Revision:
- 0:669ef71cba68
- Child:
- 16:3f2c2d89372b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LED/LED.h Sat Sep 08 06:05:22 2018 +0000 @@ -0,0 +1,29 @@ +#ifndef LED_H_ +#define LED_H_ + +#include "mbed.h" +#include <stdint.h> + +namespace LED { + extern DigitalOut boardLED[]; + + #define LED_ON 0 + #define LED_OFF 1 + + #define LED_DEBUG0_PIN PC_11 + #define LED_DEBUG1_PIN PC_10 + #define LED_DEBUG2_PIN PC_12 + #define LED_MU_PIN PC_13 + + #define LED_DEBUG0 LED::boardLED[0] + #define LED_DEBUG1 LED::boardLED[1] + #define LED_DEBUG2 LED::boardLED[2] + #define LED_MU LED::boardLED[3] + + class LED { + public: + static void Initialize(); + }; +} + +#endif