AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Airsofttimer.h@4:2c91c9eccf3a, 2014-12-13 (annotated)
- Committer:
- sillevl
- Date:
- Sat Dec 13 10:11:24 2014 +0000
- Revision:
- 4:2c91c9eccf3a
- Parent:
- 0:4a0929f1b4fd
- 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 | 0:4a0929f1b4fd | 1 | |
sillevl | 0:4a0929f1b4fd | 2 | |
sillevl | 4:2c91c9eccf3a | 3 | #ifndef AIRSOFTTIMER_H |
sillevl | 4:2c91c9eccf3a | 4 | #define AIRSOFTTIMER_H |
sillevl | 0:4a0929f1b4fd | 5 | |
sillevl | 0:4a0929f1b4fd | 6 | #include "mbed.h" |
sillevl | 4:2c91c9eccf3a | 7 | #include "board/LCD.h" |
sillevl | 4:2c91c9eccf3a | 8 | #include "board/Leds.h" |
sillevl | 4:2c91c9eccf3a | 9 | #include "board/Key.h" |
sillevl | 4:2c91c9eccf3a | 10 | #include "board/Buzzer.h" |
sillevl | 4:2c91c9eccf3a | 11 | #include "board/Button.h" |
sillevl | 4:2c91c9eccf3a | 12 | #include "board/Keyboard.h" |
sillevl | 0:4a0929f1b4fd | 13 | |
sillevl | 4:2c91c9eccf3a | 14 | struct Pinouts{ |
sillevl | 4:2c91c9eccf3a | 15 | PinName button; |
sillevl | 4:2c91c9eccf3a | 16 | PinName key; |
sillevl | 4:2c91c9eccf3a | 17 | LedPins leds; |
sillevl | 4:2c91c9eccf3a | 18 | PinName buzzer; |
sillevl | 4:2c91c9eccf3a | 19 | KeyboardPins keyboard; |
sillevl | 4:2c91c9eccf3a | 20 | LcdPins lcd; |
sillevl | 4:2c91c9eccf3a | 21 | }; |
sillevl | 0:4a0929f1b4fd | 22 | |
sillevl | 0:4a0929f1b4fd | 23 | class Airsofttimer |
sillevl | 0:4a0929f1b4fd | 24 | { |
sillevl | 4:2c91c9eccf3a | 25 | static const char* LOGO[]; |
sillevl | 4:2c91c9eccf3a | 26 | public: |
sillevl | 4:2c91c9eccf3a | 27 | Airsofttimer(Pinouts pinouts); |
sillevl | 4:2c91c9eccf3a | 28 | |
sillevl | 4:2c91c9eccf3a | 29 | |
sillevl | 4:2c91c9eccf3a | 30 | private: |
sillevl | 4:2c91c9eccf3a | 31 | void init(); |
sillevl | 4:2c91c9eccf3a | 32 | LCD* lcd; |
sillevl | 4:2c91c9eccf3a | 33 | |
sillevl | 0:4a0929f1b4fd | 34 | |
sillevl | 0:4a0929f1b4fd | 35 | }; |
sillevl | 0:4a0929f1b4fd | 36 | |
sillevl | 0:4a0929f1b4fd | 37 | #endif |