This project uses an Arduino, a joystick module, and 10 LEDs to create a dynamic LED bar that lights up based on the joystick's horizontal movement. How it works: The joystick reads the analog X-axis ...
This arduino code can be used to turn LEDS (4 in number) ON according to the positioning of the Joystick Sensor. This is a very simple code that can used to check the working of a Joystick Sensor.