Nagano kosen robocon

Dependencies:   mbed QEI

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     #define LED_DEBUG0_PIN  PC_11
00014     #define LED_DEBUG1_PIN  PC_10
00015     #define LED_MU_PIN      PC_12
00016 
00017     #define LED_DEBUG0  LED::boardLED[0]
00018     #define LED_DEBUG1  LED::boardLED[1]
00019     #define LED_MU      LED::boardLED[2]
00020 
00021 
00022     class LED {
00023         public:
00024         static void Initialize();
00025     };
00026 }
00027 
00028 #endif
00029