M magicjohn New Member Apr 8, 2011 #1 If I define an input pin as a symbol: symbol modeswitch = C.7 What is the syntax for reading the pin as in "if pinC.7 = 1 then.... "
If I define an input pin as a symbol: symbol modeswitch = C.7 What is the syntax for reading the pin as in "if pinC.7 = 1 then.... "
W westaust55 Moderator Apr 8, 2011 #2 Try IF modeswitch = 1 THEN . . . . Try in the PE simulator if you want to bverify
C ckoehn Member Apr 8, 2011 #4 If I remember right, "symbol" is just for "search and replace". It should be.. symbol modeswitch=pinC.7 Clint
If I remember right, "symbol" is just for "search and replace". It should be.. symbol modeswitch=pinC.7 Clint
hippy Ex-Staff (retired) Apr 8, 2011 #5 Clint's correct. One needs to define symbols for C.7 and/or pinC.7 depending how they are to be used ... Symbol MY_BUTTON = C.7 Symbol MY_BUTTON_PIN = pinC.7 Count MY_BUTTON, 1000, w0 If MY_BUTTON_PIN = 1 Then ...
Clint's correct. One needs to define symbols for C.7 and/or pinC.7 depending how they are to be used ... Symbol MY_BUTTON = C.7 Symbol MY_BUTTON_PIN = pinC.7 Count MY_BUTTON, 1000, w0 If MY_BUTTON_PIN = 1 Then ...