AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
board/Board.cpp@5:be598835bab0, 2014-12-13 (annotated)
- Committer:
- sillevl
- Date:
- Sat Dec 13 12:24:37 2014 +0000
- Revision:
- 5:be598835bab0
- Child:
- 16:e8e96bf22df1
Refactored game board (all hardware) and added abstract game class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 5:be598835bab0 | 1 | #include "Board.h" |
sillevl | 5:be598835bab0 | 2 | |
sillevl | 5:be598835bab0 | 3 | Board::Board(Pinouts pinouts){ |
sillevl | 5:be598835bab0 | 4 | lcd = new LCD(pinouts.lcd.rs, pinouts.lcd.e, pinouts.lcd.p4, pinouts.lcd.p5, pinouts.lcd.p6, pinouts.lcd.p7, LCD::LCD20x4); |
sillevl | 5:be598835bab0 | 5 | leds = new Leds(pinouts.leds.left, pinouts.leds.right); |
sillevl | 5:be598835bab0 | 6 | button = new Button(pinouts.button); |
sillevl | 5:be598835bab0 | 7 | key = new Key(pinouts.key); |
sillevl | 5:be598835bab0 | 8 | keyboard = new Keyboard(pinouts.keyboard); |
sillevl | 5:be598835bab0 | 9 | buzzer = new Buzzer(pinouts.buzzer); |
sillevl | 5:be598835bab0 | 10 | } |