AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Committer:
sillevl
Date:
Thu Feb 07 20:50:33 2013 +0000
Revision:
0:4a0929f1b4fd
Child:
4:2c91c9eccf3a
Hello world LED ! working !

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 0:4a0929f1b4fd 1
sillevl 0:4a0929f1b4fd 2
sillevl 0:4a0929f1b4fd 3 #ifndef _AIRSOFTTIMER_H
sillevl 0:4a0929f1b4fd 4 #define _AIRSOFTTIMER_H
sillevl 0:4a0929f1b4fd 5
sillevl 0:4a0929f1b4fd 6 #include "mbed.h"
sillevl 0:4a0929f1b4fd 7 #include "TextLCD.h"
sillevl 0:4a0929f1b4fd 8
sillevl 0:4a0929f1b4fd 9 // PUT THIS ALL IN A CLASS !!!!!!!
sillevl 0:4a0929f1b4fd 10
sillevl 0:4a0929f1b4fd 11 // pinnames see: http://mbed.org/users/mbed_official/code/mbed/file/0954ebd79f59/LPC1768/PinNames.h
sillevl 0:4a0929f1b4fd 12
sillevl 0:4a0929f1b4fd 13 class Airsofttimer
sillevl 0:4a0929f1b4fd 14 {
sillevl 0:4a0929f1b4fd 15 Airsofttimer();
sillevl 0:4a0929f1b4fd 16 //TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d4-d7
sillevl 0:4a0929f1b4fd 17
sillevl 0:4a0929f1b4fd 18 PinName buttonPin; //P0.4
sillevl 0:4a0929f1b4fd 19 PinName keyPin; //P0.5
sillevl 0:4a0929f1b4fd 20 PinName ledAPin; //P2.4
sillevl 0:4a0929f1b4fd 21 PinName ledBPin; //P2.5
sillevl 0:4a0929f1b4fd 22 PinName buzzerPin; //P2.3
sillevl 0:4a0929f1b4fd 23 PinName keyboardRowPins[4]; // ROWS=P0.8 -> P0.11
sillevl 0:4a0929f1b4fd 24 PinName keyboardColPins[3]; // COLS=P0.16 -> P0.18
sillevl 0:4a0929f1b4fd 25 PinName lcdPins[6]; // E=P1.31, RS=P1.30, D4=P0.23 -> D7=P0.26
sillevl 0:4a0929f1b4fd 26
sillevl 0:4a0929f1b4fd 27 //lcd.printf("AirsoftTimer\n");
sillevl 0:4a0929f1b4fd 28
sillevl 0:4a0929f1b4fd 29 };
sillevl 0:4a0929f1b4fd 30
sillevl 0:4a0929f1b4fd 31 #endif