AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Revision 7:baf207d88603, committed 2014-12-13
- Comitter:
- sillevl
- Date:
- Sat Dec 13 12:43:59 2014 +0000
- Parent:
- 6:8035ee13db25
- Child:
- 8:e9fb60f5a56f
- Commit message:
- Refactored pinouts to be more consistent
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Dec 13 12:32:12 2014 +0000 +++ b/main.cpp Sat Dec 13 12:43:59 2014 +0000 @@ -5,19 +5,20 @@ #include "Airsofttimer.h" #include "TextLCD.h" +PinName buttonpin = P0_5; +PinName keypin = P0_4; +PinName buzzerpin = P2_3; LedPins ledpins = {P2_4, P2_4}; // left, right - KeyboardPins keyboardpins = {{P0_8, P0_9, P0_10, P0_11}, {P0_16, P0_17, P0_18}}; - LcdPins lcdpins = {P1_30, P1_31, P0_23, P0_24, P0_25, P0_26}; Pinouts pinouts = { - P0_5, // button - P0_4, // key - ledpins, // leds - P2_3, // buzzer + buttonpin, + keypin, + ledpins, + buzzerpin, keyboardpins, - lcdpins// lcd + lcdpins }; int main()