So far, so god ... Now another problem : how can I separates signals?
If rotary switch is Up, can't read if TK- or V- are pressed ..
If rotary switch is in middle position, can't read if MUTE or V+ are pressed ...
If rotary switch is down, can't read if TK+ or S are pressed...
LE - I think this work :
Code:;reading buttons on line 1 Porta.4 = 0 trisb.5 = 1 pause 50 status_2 = PortA & %00000111 Porta.4 = 1 trisb.5 = 0
Bookmarks