Joystick
sensoricon
port: Grove: A1 (C16, C17)
interface: analog
output values

X/Y approx. 200 - 800
pressed: 1023

Further information: https://wiki.seeedstudio.com/Grove-Thumb_Joystick/
Order: https://www.exp-tech.de/module/seeed-grove-system/4276/seeed-studio-grove-thumb-joystick

The joystick is similar to a game console controller. Each button can be moved in any direction. By pressing the joystick down, an additional button can be used. This way vehicles and robots can be controlled or even own games can be played.
Two signals are received via pins C16 and C17. C16 represents the values of the X-axis and C17 the values of the Y-axis.

Makecode

The "Joystick" blocks are included in the Grove package. Again, there are two ways to read out the values of the joystick.
Either a continuous loop is used and the joystick directions are read and compared in an if-then condition or the event block "if Grove - joystick direction x" is used.