JoyC is a rocker module designed for the M5StickC.It supports two-hand operation. Embedded STM32F030F4 main control chip, using I2C communication protocol and host M5StickC for data transmission. The range of the joystick is 0~200, there are 12 RGB LEDs under the left and right joysticks, and the bottom of the joystick is equipped with a 16340/18350 battery base for continuous battery life.
Resources | Parameter |
---|---|
Communication protocol | I2C:0x38 |
Net weight | 81g |
Gross weight | 117g |
Product Size | 200*55*50mm |
Package Size | 119*89*65mm |
1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.
/*--------------------------------------------------------------------------------------------------*/
| JOYC_COLOR_REG | 0x20
| ------------------------------------------------------------------------------------------------
| rgb_r_reg[0] | R/W | RED value
| rgb_g_reg[1] | R/W | Green value
| rgb_b_reg[2] | R/W | Blue value
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_LEFT_X_REG | 0x60
| ------------------------------------------------------------------------------------------------
| left_x_reg[0] | R | LEFT X VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_LEFT_Y_REG | 0x61
| ------------------------------------------------------------------------------------------------
| left_y_reg[0] | R | LEFT Y VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_RIGHT_X_REG | 0x62
| ------------------------------------------------------------------------------------------------
| right_x_reg[0] | R | RIGHT X VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_RIGHT_Y_REG | 0x63
| ------------------------------------------------------------------------------------------------
| right_y_reg[0] | R | RIGHT Y VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_PRESS_REG | 0x64
| ------------------------------------------------------------------------------------------------
| press_reg[0] | R | LEFT AND RIGHT PRESS VALUE
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| R | R | R | R | R | R | LEFT | RIGHT |
| LEFT:
Pressed: 1
Released: 0
| RIGHT:
Pressed: 1
Released: 0
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_LEFT_ANGLE_REG | 0x70
| ------------------------------------------------------------------------------------------------
| left_angle_reg[0] | R | LEFT ANGLE VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_RIGHT_ANGLE_REG | 0x72
| ------------------------------------------------------------------------------------------------
| right_angle_reg[0] | R | RIGHT ANGLE VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_LEFT_DISTANCE_REG | 0x74
| ------------------------------------------------------------------------------------------------
| left_distance_reg[0] | R | LEFT DISTANCE VALUE
/*----------------------------------------------------------------------------------------------------
/*--------------------------------------------------------------------------------------------------*/
| JOYC_RIGHT_DISTANCE_REG | 0x76
| ------------------------------------------------------------------------------------------------
| right_distance_reg[0] | R | RIGHT DISTANCE VALUE
/*----------------------------------------------------------------------------------------------------
Use with RoverC HAT, please click here
Use alone here