Description
JOYSTICK is a control column module. A joystick is an input device consisting of a stick that pivots on a base and reports its angle or direction to the device it is controlling. Same as ENCODER, it is compatible with FACE Kit. You can have it replace the keycoard panel inside the FACE kit. Through IIC you can get the offset data form (X, Y) axis, also the button status. You can customized the LED behavior as you like.
JOYSTICK IIC address is 0x5E).
Product Features
12 RGB Led
IIC communication
Simple API for programming
Product Size:58.2mm x 54.2mm x 10mm
Product weight:30g
Function
Control single RGB
/* Parameter:indexOfLED:0 ~ 11 r, g, b:0 ~ 254 */ void Led(int indexOfLED, int r, int g, int b)
Copy to clipboardErrorCopied
Read the offset of each direction
void get_joystick_offset(void)
Copy to clipboardErrorCopied
Package Included
1x M5Stack JOYSTICK Module board
1x Joystick Bar
Related Link
Offical Video
Forum
The Firmware of inside MEGA328
EasyLoader
click to download EasyLoader
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click inchBurninch to start burning.
3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial
Example
IDE
To the complete code
faces_joystick.ino
, click here
Additional information
Weight | 0.045 kg |
---|
Reviews