Probably a simple question.... but....

magicjohn

New Member
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.... "
 

ckoehn

Member
If I remember right, "symbol" is just for "search and replace".

It should be..

symbol modeswitch=pinC.7

Clint
 

hippy

Ex-Staff (retired)
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 ...
 
Top