Difference between revisions of "Component: Joystick (Sparkfun Quiic) (Analog Input)"
From Flowcode Help
Jump to navigationJump to searchLine 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 24: | Line 26: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 49: | Line 53: | ||
| colspan="2" | Range: 8 to 119 or 0x08 - 0x77 | | colspan="2" | Range: 8 to 119 or 0x08 - 0x77 | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 62: | Line 66: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 80: | Line 84: | ||
| colspan="2" | Range 0-1 Where 0=X, 1=Y | | colspan="2" | Range 0-1 Where 0=X, 1=Y | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" | Type | | width="90%" | Type | ||
|- | |- | ||
| colspan="2" | 0 = Signed (-512 to 511), 1 = Unsigned (0 to 1023) | | colspan="2" | 0 = Signed (-512 to 511), 1 = Unsigned (0 to 1023) | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 98: | Line 102: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} |
Revision as of 13:31, 17 November 2021
Author | 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.
Detailed description
No detailed description exists yet for this component
Examples
There is a detailed walk through of the scenario detailed at the link below to go with this component.
Downloadable macro reference
![]() |
CheckButton |
Checks to see if the button has been pressed since the last read of CheckButton or ReadButton. | |
![]() |
Return |
![]() |
ReadAxis |
Reads a single axis of the joystick and returns as a signed integer value. | |
![]() |
Axis |
Range 0-1 Where 0=X, 1=Y | |
![]() |
Type |
0 = Signed (-512 to 511), 1 = Unsigned (0 to 1023) | |
![]() |
Return |
![]() |
ReadButton |
Checks to see if the button is currently pressed | |
![]() |
Return |
![]() |
Initialise |
Initialises the I2C bus ready for communications with the module. | |
![]() |
Return |