ky040 encoder test sketch on i2c lcd
hello have been playing around encoder , 20-04 i2c fed lcd trying both work there have read lot of old posts on subject small amount of learning have ( best way learn put together) the problem cannot see encoder counts ok counter clockwise clockwise shows 0-1-0 , on i think problem lies incrementing decrementing count ?? think, take please , enlighten me thanks code: [select] #include <liquidcrystal_i2c.h> // lcd defaults #define i2c_addr 0x27 // define i2c address pcf8574a is #define backlight_pin 3 #define en_pin 2 #define rw_pin 1 #define rs_pin 0 #define d4_pin 4 #define d5_pin 5 #define d6_pin 6 #define d7_pin 7 liquidcrystal_i2c lcd(i2c_addr,en_pin,rw_pin,rs_pin,d4_pin,d5_pin,d6_pin,d7_pin); const int pinclk = 2; // used generating interrupts using clk signal const int pindt = 3; ...