# JOYSTICK

This Unit communicates with the M5Core via the GROVE A interface. It's I2C address is 0x52. By reading the data transferred from JOSTICK, you can obtain the motion information of JOYSTICK.
## Product Features
- Output value of X, Y direction: 10 ~ 250
- Output value of Z direction is (0: released; 1: pressed)
- Software Development Platform : Arduino, UIFlow(Blockly, Python)
- Two Lego-compatible holes
## Include
- 1x JOYSTICK Unit
- 1x Grove Cable
## Applications
- Game Controller
- Robot remote control
## Specification
| Resources | Parameter |
| Communication protocol | I2C:0x52 |
| X、Y Axis output value range | 10-250 |
| Z Axis output value range | 0-1 |
| Net weight | 11g |
| Gross weight | 27g |
| Product Size | 48*24*32mm |
| Package Size | 75*45*30mm |
| M5Core(GROVE A) | GPIO22 | GPIO21 | 5V | GND |
| JOYSTICK Unit | SCL | SDA | 5V | GND |
## Example
### 1. Arduino
- [Click here to download the Arduino example](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/JOYSTICK)
### 2. UIFlow
- [Click here to download the UIFlow example](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/JOYSTICK/UIFlow)