AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
board/Leds.h@4:2c91c9eccf3a, 2014-12-13 (annotated)
- Committer:
- sillevl
- Date:
- Sat Dec 13 10:11:24 2014 +0000
- Revision:
- 4:2c91c9eccf3a
- Child:
- 5:be598835bab0
refactored startup code and added class placeholders for interface devices (board)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 4:2c91c9eccf3a | 1 | #ifndef LEDS_H |
sillevl | 4:2c91c9eccf3a | 2 | #define LEDS_H |
sillevl | 4:2c91c9eccf3a | 3 | |
sillevl | 4:2c91c9eccf3a | 4 | #include "mbed.h" |
sillevl | 4:2c91c9eccf3a | 5 | |
sillevl | 4:2c91c9eccf3a | 6 | struct LedPins{ |
sillevl | 4:2c91c9eccf3a | 7 | PinName left; |
sillevl | 4:2c91c9eccf3a | 8 | PinName richt; |
sillevl | 4:2c91c9eccf3a | 9 | }; |
sillevl | 4:2c91c9eccf3a | 10 | |
sillevl | 4:2c91c9eccf3a | 11 | class Leds{ |
sillevl | 4:2c91c9eccf3a | 12 | |
sillevl | 4:2c91c9eccf3a | 13 | public: |
sillevl | 4:2c91c9eccf3a | 14 | Leds(PinName leftPin, PinName rightPin); |
sillevl | 4:2c91c9eccf3a | 15 | }; |
sillevl | 4:2c91c9eccf3a | 16 | #endif |