Joystick (use with mDesigner)

From Microduino Wiki
Revision as of 17:46, 8 June 2018 by Sonny (talk | contribs) (Joystick - Direction State)
Jump to: navigation, search

This Joystick is an input sensor which can detect the direction in which the stick is positioned. Support for this trinket is found in mDesigner.

Compatible Pins

The following pins on the Hub or mCenter+'s Hub support this module:

Hub AnalogRead Pins.png
Pin Name Compatibility Notes
Pin 0 No
Pin 1 No
Pin 2 No
Pin 3 No
Pin 4 No
Pin 5 No
Pin 6 No
Pin 7 No
Pin 8 No
Pin 9 No
Pin 10 No
Pin 11 No
Pin 12 No
Pin 13 No
Pin A0 Yes
Pin A1 Yes
Pin A2 Yes
Pin A3 Yes
Pin A6 Yes
Pin A7 Yes
Pin I2C No


Blocks

Joystick - Direction State

This block checks the Joystick's position (key) and that position's state.
If the block's configured state matches the actual physical Joystick's state, then true is returned. Otherwise, false is returned.


Examples