The keyestudio micro bit Honeycomb PS2 joystick module is fully compatible with micro bit control board. In the experiment, we connect the joystick module to the micro:bit control board using crocodile clip wire. There are 6 ports on the module, two GND ports are connected. When controlling it, we need to connect the VRx,VRy port to the analog port of the micro:bit control board, and the SW port to the digital port of the micro:bit control board. We can judge the working state of the joystick on the module by reading the two analog values and the high and low levels of a digital port.
Special Note: When testing the SW port function, for some products, we need connect a resistor to SW interface (connect to VCC port after connecting a resistor), the port function is valid; otherwise SW port is invalid.