AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
board/Button.h@11:50572814f73e, 2014-12-31 (annotated)
- Committer:
- sillevl
- Date:
- Wed Dec 31 15:27:43 2014 +0000
- Revision:
- 11:50572814f73e
- Parent:
- 4:2c91c9eccf3a
ShowBuzzer;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 4:2c91c9eccf3a | 1 | #ifndef BUTTON_H |
sillevl | 4:2c91c9eccf3a | 2 | #define BUTTON_H |
sillevl | 4:2c91c9eccf3a | 3 | |
sillevl | 4:2c91c9eccf3a | 4 | #include "mbed.h" |
sillevl | 4:2c91c9eccf3a | 5 | |
sillevl | 11:50572814f73e | 6 | class Button : public DigitalIn{ |
sillevl | 4:2c91c9eccf3a | 7 | public: |
sillevl | 11:50572814f73e | 8 | Button(PinName buttonPin); |
sillevl | 11:50572814f73e | 9 | operator int(); |
sillevl | 4:2c91c9eccf3a | 10 | |
sillevl | 11:50572814f73e | 11 | protected: |
sillevl | 11:50572814f73e | 12 | //InterruptIn* _interrupt; |
sillevl | 11:50572814f73e | 13 | |
sillevl | 4:2c91c9eccf3a | 14 | }; |
sillevl | 4:2c91c9eccf3a | 15 | |
sillevl | 4:2c91c9eccf3a | 16 | #endif |