po
Dependencies: ArduinoHAL mbed-src-nrf51822
Diff: Button.h
- Revision:
- 1:a8ea5eba6376
- Parent:
- 0:03c039c2a00d
--- a/Button.h Tue Nov 24 22:18:32 2015 +0000 +++ b/Button.h Tue Nov 24 22:24:08 2015 +0000 @@ -29,10 +29,10 @@ byte velocity; // midi velocity void noteOnOff(bool v); // send note on off public: - Button(byte p); //!< constructor with pin number. @param p pin number - Button(byte p, byte c, byte n); //!< constructor with pin number, midi channel and midi note. @param p pin number @param c midi channel @param n midi note - Button(byte p, byte c, byte n, bool sec); //!< constructor with pin number, midi channel, midi note and secondary messages. @param p pin number @param c midi channel @param n midi note @param sec enable secondary messages - Button(byte p, byte c, byte n, bool sec, bool debug); //!< constructor with pin number, midi channel, midi note, secondary messages and debugging. @param p pin number @param c midi channel @param n midi note @param sec enable secondary message @param debug enable debugging + Button(byte 8); //!< constructor with pin number. @param p pin number + Button(byte 9, byte c, byte n); //!< constructor with pin number, midi channel and midi note. @param p pin number @param c midi channel @param n midi note + Button(byte 10, byte c, byte n, bool sec); //!< constructor with pin number, midi channel, midi note and secondary messages. @param p pin number @param c midi channel @param n midi note @param sec enable secondary messages + Button(byte 13, byte c, byte n, bool sec, bool debug); //!< constructor with pin number, midi channel, midi note, secondary messages and debugging. @param p pin number @param c midi channel @param n midi note @param sec enable secondary message @param debug enable debugging ~Button(); // destructor void read(); //!< read the values and send a midi message if the button state changed. use in main loop bool readValue(bool &changed); //!< read the values and return if the button is pressed, pass state change @param changed will beset to true if the state of the button changed