大季 矢花 / Mbed 2 deprecated MB2019_main_ver3-11-6-allline

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LED.h Source File

LED.h

00001 #ifndef LED_H_
00002 #define LED_H_
00003 
00004 #include "mbed.h"
00005 #include <stdint.h>
00006 
00007 namespace LED {
00008     extern DigitalOut boardLED[];
00009 
00010     #define LED_ON  0
00011     #define LED_OFF 1
00012 
00013     // BOARD_DEBUG_LED
00014     #define LED_DEBUG0_PIN  PD_2
00015     #define LED_DEBUG1_PIN  PC_12
00016     #define LED_DEBUG2_PIN  PA_15
00017     #define LED_MU_PIN      PB_7
00018 
00019     #define LED_DEBUG0  LED::boardLED[0]
00020     #define LED_DEBUG1  LED::boardLED[1]
00021     #define LED_DEBUG2  LED::boardLED[2]
00022     #define LED_MU      LED::boardLED[3]
00023     
00024     // LED
00025     #define LED_TAPE0_PIN  PC_2 
00026     #define LED_TAPE1_PIN  PC_3
00027     #define LED_TAPE2_PIN  PC_0
00028     #define LED_TAPE3_PIN  PC_1
00029     #define LED_TAPE4_PIN  PB_0
00030     
00031     class LED {
00032         public:
00033         static void Initialize();
00034         static void TapeledMode(uint8_t index);
00035     };
00036 }
00037 
00038 #endif