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

Recurrent H/W and software problems
Post Reply
Zim
Posts: 281
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 258 times
Been thanked: 128 times

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

Post 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
Zim
Posts: 281
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 258 times
Been thanked: 128 times

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

Post by Zim »

Does this offer more clues?
2024-02-01 19_40_40-cicciocb.com_TERM_AnnexTerm.html - Opera.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

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

Post by cicciocb »

Replace wlog with print
Post Reply