loop: if portb.1=0 then 'here is switch 1 of the rotary encoder counter=counter+1 goto lcd endif if portb.0=0 then 'here is switch 2 of the rotary encoder counter=counter-1 goto lcd endif goto loop lcd: lcdout $fe,$c0,dec5 counter while (portb.0=0 or portb.1=0):pause 10:wend goto loop
Common of the encoder is Low and Pull Up is supposed to be active.
Ioannis
Re: CircuitLab simulation
Thanks, I'll keep that one in mind if I ever try to simulate a circuit again. :D
Demon - 9th May 2024, 06:17I had tried using that PWM board (FR120N, LR7843, D4184), but it the COB LED wouldn't completely turn off and I...