Arduino LCD menu basic joystick control lcd 16x2 display analogread lcd print code s simple tutorial

preview_player
Показать описание
Arduino control menu with joystick liquid crystal display, how to tutorial lcd (16, 2), joystick analog read values for input lcd print, by moving joystick it checks input to read from analog pin and tell arduino r3 uno microcontroller to write serveral cases youve put in void loop.

#include liquidcrystal.h

LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

Int joypin1 = 0; //analog 0 (x)
Int joypin2 = 1; //analog 1 (y)
Int value1 = 0; //variable to read value from A pin0
Int value2 = 0; //variable to read value from A pin1
Рекомендации по теме
welcome to shbcf.ru