28X input a0 comand?

Screech

Member
Picaxe-28X
Leg 2:
ADC 0 / In a0

I just want that input to be a digital one( the second function).

I keep getting the syntax error.
so, whats the command?


eg.
input port a0?
or
input a0?
or
----------?

Thanking you.



 

Screech

Member
actually the command would be:

if input a0 = 1 then goto main
or
if input porta 0 = 1 then goto main
or
if input port a0 = 1 then goto main

Now you know what I am trying to do.
So, whats the correct syntex.


Thank you
 
Top