Difference between revisions of "Component: Joystick (Sparkfun Quiic) 2D (Analog Input)"
From Flowcode Help
Jump to navigationJump to search| Line 5: | Line 5: | ||
|- | |- | ||
| width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
| − | | | + | | 10.0 |
|- | |- | ||
| width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
| Line 15: | Line 15: | ||
An XY sprung joystick with click switch allowing for easy user input control. Connected using I2C bus. | An XY sprung joystick with click switch allowing for easy user input control. Connected using I2C bus. | ||
| − | == | + | ==Version information== |
| − | + | Library Version, Component Version, Date, Author, Info | |
| + | 10, 10.0, 04-12-24, MW,Icon edited so compatible with dark theme | ||
| − | |||
==Detailed description== | ==Detailed description== | ||
| Line 173: | Line 173: | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| Line 325: | Line 301: | ||
| colspan="2" | Specifies the API component on the panel to interact with to provide comms simulation. | | colspan="2" | Specifies the API component on the panel to interact with to provide comms simulation. | ||
|} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Sparkfun_Quiic_Joystick_2dgi.fcfx FC_Comp_Source_Sparkfun_Quiic_Joystick_2dgi.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Sparkfun_Quiic_Joystick_2dgi.fcfx FC_Comp_Source_Sparkfun_Quiic_Joystick_2dgi.fcfx] | ||
Latest revision as of 21:16, 27 January 2026
| Author | Matrix TSL |
| Version | 10.0 |
| Category | Analog Input |
Contents
Joystick (Sparkfun Quiic) 2D component
An XY sprung joystick with click switch allowing for easy user input control. Connected using I2C bus.
Version information
Library Version, Component Version, Date, Author, Info 10, 10.0, 04-12-24, MW,Icon edited so compatible with dark theme
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. | |
| Return | |
Initialise
| Initialise | |
| Initialises the I2C bus ready for communications with the module. | |
| Return | |
ReadAxis
| 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
| ReadButton | |
| Checks to see if the button is currently pressed | |
| Return | |
SimMoveThumbStick
| SimMoveThumbStick | |
| X | |
| Y | |
| Component | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Sparkfun_Quiic_Joystick_2dgi.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Sparkfun_Quiic_Joystick_2dgi.fcfx