new user multi input help required
staffshome
Posts: 28
Hi,
can anyone help me with how to read 4 input pins
from table below,inputs from switch are multiplexed,how do i read all 4 inputs & run a subroutine for
each of the six input statements.Looked in manual & got totally confused,i think i need a lookup table ?
switch Table:
input pin ·5·6 7 8
· gear··· ·A B C PA
······· P = 1 0 0 1
········R= ·1 1 0 0
········N= ·0 1 0 1
········D= ·0 1 1 0
········3=· 1 1 1 1
······· L=· 1 0 1 0
·using BS2Px board & pbasic 2.5
Thanks Adrian
can anyone help me with how to read 4 input pins
from table below,inputs from switch are multiplexed,how do i read all 4 inputs & run a subroutine for
each of the six input statements.Looked in manual & got totally confused,i think i need a lookup table ?
switch Table:
input pin ·5·6 7 8
· gear··· ·A B C PA
······· P = 1 0 0 1
········R= ·1 1 0 0
········N= ·0 1 0 1
········D= ·0 1 1 0
········3=· 1 1 1 1
······· L=· 1 0 1 0
·using BS2Px board & pbasic 2.5
Thanks Adrian
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Looks like the answer
regards Adrian