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.
Diff: Gamepad.h
- Revision:
- 10:a13d2f9d8a14
- Parent:
- 9:893189072e89
- Child:
- 11:ff86b2ffce01
--- a/Gamepad.h Tue Feb 07 11:50:26 2017 +0000
+++ b/Gamepad.h Tue Feb 07 11:53:37 2017 +0000
@@ -59,37 +59,37 @@
/** Set all LEDs to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_leds(float val);
+ void leds(float val);
/** Set LED to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_led1(float val);
+ void led1(float val);
/** Set LED to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_led2(float val);
+ void led2(float val);
/** Set LED to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_led3(float val);
+ void led3(float val);
/** Set LED to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_led4(float val);
+ void led4(float val);
/** Set LED to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_led5(float val);
+ void led5(float val);
/** Set LED to duty-cycle
*@param value in range 0.0 to 1.0
*/
- void set_led6(float val);
+ void led6(float val);
/** Read potentiometer
*@returns potentiometer value in range 0.0 to 1.0
@@ -180,12 +180,12 @@
private:
- PwmOut *led1;
- PwmOut *led2;
- PwmOut *led3;
- PwmOut *led4;
- PwmOut *led5;
- PwmOut *led6;
+ PwmOut *_led1;
+ PwmOut *_led2;
+ PwmOut *_led3;
+ PwmOut *_led4;
+ PwmOut *_led5;
+ PwmOut *_led6;
InterruptIn *button_A;
InterruptIn *button_B;