Sugar Joystick Module
Last updated
Last updated
This is a joystick module in the Sugar sensor series, it can detect joystick positions and trigger status. The pin holes on the back allow compatibility with plastic building blocks.
Dimensions: 24 x 24 x 23 mm
Weight: 7g
Type: I2C
X: -255~255
Y: -255~255
Button: 0~1
Use a 4Pin cable to connect the module to the 4Pin I2C Port on the Robotbit Edu.
Sugar extension: https://github.com/KittenBot/pxt-sugar
dir: X/Y
state(): Returns none when trigger is not pressed, returns pressed/left/right/up/down when pressed.
Sample Program