Component: Joystick (Sparkfun Quiic) (Analog Input)
From Flowcode Help
(Redirected from Component: ID 74571cdc 4f94 4e9a b56b 376f36424996)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Analog Input |
Contents
Joystick (Sparkfun Quiic) component
An XY sprung joystick with click switch allowing for easy user input control. Connected using I2C bus.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Sparkfun_Quiic_Joystick.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Sparkfun_Quiic_Joystick.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeI2CAddress
CheckButton
CheckButton | |
Checks to see if the button has been pressed since the last read of CheckButton or ReadButton. | |
- BOOL | Return |
Initialise
Initialise | |
Initialises the I2C bus ready for communications with the module. | |
- VOID | Return |
ReadAxis
ReadAxis | |
Reads a single axis of the joystick and returns as a signed integer value. | |
- BYTE | Axis |
Range 0-1 Where 0=X, 1=Y | |
- BOOL | Type |
0 = Signed (-512 to 511), 1 = Unsigned (0 to 1023) | |
- INT | Return |
ReadButton
ReadButton | |
Checks to see if the button is currently pressed | |
- BOOL | Return |