Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TextLCD keypad
Diff: board/Button.cpp
- Revision:
- 11:50572814f73e
- Parent:
- 4:2c91c9eccf3a
--- a/board/Button.cpp Sun Dec 14 11:50:19 2014 +0000
+++ b/board/Button.cpp Wed Dec 31 15:27:43 2014 +0000
@@ -1,5 +1,12 @@
#include "Button.h"
-Button::Button(PinName buttonPin){
+Button::Button(PinName buttonPin) : DigitalIn(buttonPin){
+
+ //_interrupt = new InterruptIn(buttonPin);
+ // _interrupt.rise(this, &Counter::increment);
+}
+
+Button::operator int() {
+ return read();
}
\ No newline at end of file
