microbit: Update to MicroBitMultiButton contructor signature

Changed ordering of parameters to promote consistency with other components.
This commit is contained in:
Joe Finney 2016-03-26 11:58:36 +00:00
parent 4f31ffa9d4
commit 3efd76e9d4
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ class MicroBitMultiButton : public MicroBitComponent
*
* Example:
* @code
* multiButton(MICROBIT_ID_BUTTON_AB, MICROBIT_ID_BUTTON_A, MICROBIT_ID_BUTTON_B);
* multiButton(MICROBIT_ID_BUTTON_A, MICROBIT_ID_BUTTON_B, MICROBIT_ID_BUTTON_AB);
* @endcode
*
* Possible Events:
@ -60,7 +60,7 @@ class MicroBitMultiButton : public MicroBitComponent
* MICROBIT_BUTTON_EVT_HOLD
* @endcode
*/
MicroBitMultiButton(uint16_t id, uint16_t button1, uint16_t button2);
MicroBitMultiButton(uint16_t button1, uint16_t button2, uint16_t id);
/**
* Tests if this MultiButton is currently pressed.

View File

@ -12,7 +12,7 @@
*
* Example:
* @code
* multiButton(MICROBIT_ID_BUTTON_AB, MICROBIT_ID_BUTTON_A, MICROBIT_ID_BUTTON_B);
* multiButton(MICROBIT_ID_BUTTON_A, MICROBIT_ID_BUTTON_B, MICROBIT_ID_BUTTON_AB);
* @endcode
*
* Possible Events:
@ -24,7 +24,7 @@
* MICROBIT_BUTTON_EVT_HOLD
* @endcode
*/
MicroBitMultiButton::MicroBitMultiButton(uint16_t id, uint16_t button1, uint16_t button2)
MicroBitMultiButton::MicroBitMultiButton(uint16_t button1, uint16_t button2, uint16_t id)
{
this->id = id;
this->button1 = button1;