Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TrapezoidControl QEI
LED/LED.h@16:3f2c2d89372b, 2019-07-01 (annotated)
- Committer:
- kishibekairohan
- Date:
- Mon Jul 01 13:00:20 2019 +0000
- Revision:
- 16:3f2c2d89372b
- Parent:
- 0:669ef71cba68
aaa;
Who changed what in which revision?
| User | Revision | Line number | New 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 |