Library for ELEC2645 Gamepad PCB. University of Leeds
Dependents: Project_MaZe1_copy Labirint Game_Controller_Project 200943373MAZE ... more
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;