JOYState_TypeDef: Code of the Joystick key pressed.
Notes
To know which Joystick key is pressed we need to detect the voltage level on each key output - None : 3.3 V / 4095 - SEL : 1.055 V / 1308 - DOWN : 0.71 V / 88 - LEFT : 3.0 V / 3720 - RIGHT : 0.595 V / 737 - UP : 1.65 V / 2046
Examples
BSP_JOY_GetState() is referenced by 12 libraries and example projects: