Page 1 of 1

TW1638 and Rotary encoder won't play nice CAN 1.52.1 LFS

Posted: Thu Feb 01, 2024 10:18 pm
by Zim
Hi All
I can't seem to make these guys co exist. ESP32 locks up. Tried many different IO's and several encoders. Am I missing something?
This is a snippet but shouldn't conflict...
Thanks
Zim

Code: [Local Link Removed for Guests]

'
TM1638.SETUP 21, 22, 23 'LED display
TM1638.PRINT "on",1
count = 1
mnutrk = 1

S1 = 26 'encoder
S2 = 27 'encoder
PB = 33 'encoder push button

pin.mode S1, input
pin.mode S2, input
pin.mode PB, input

interrupt S1, encoder
interrupt PB, Pbutton
TM1638.PRINT "Off",1
wait

encoder:
wlog "sw"
wait

Pbutton:
wlog "Button"
wait
end

Re: TW1638 and Rotary encoder won't play nice CAN 1.52.1 LFS

Posted: Fri Feb 02, 2024 2:42 am
by Zim
Does this offer more clues?
2024-02-01 19_40_40-cicciocb.com_TERM_AnnexTerm.html - Opera.jpg

Re: TW1638 and Rotary encoder won't play nice CAN 1.52.1 LFS

Posted: Fri Feb 02, 2024 5:53 am
by cicciocb
Replace wlog with print