*************
Picaxe Programming Editor
version 5.1.5 (Syntax DLL 131072)
Picaxe 08/08M
If you put
<code><pre><font size=2 face='Courier'>symbol outrelay = pin0 </font></pre></code>
Or even => <code><pre><font size=2 face='Courier'>High pin0 </font></pre></code>
or => <code><pre><font size=2 face='Courier'>Low pin0 </font></pre></code>
you obtain one error of unknown symbol...
you can see here =><A href='http://www.elpato.homeip.net/ventas/picaxeweb/errorpin0.jpg' Target=_Blank>External Web Link</a>
So if you use <code><pre><font size=2 face='Courier'>High 0 </font></pre></code> works ok
but how can I reference to pin0 to check it status?
like <code><pre><font size=2 face='Courier'>if pin0 = 1 then startmotor </font></pre></code>
Picaxe_manual2.pdf on page 72 say:
<i>"Examples:
Checking an input within a loop.
main:
if pin0 = 1 then flsh ‘ jump to flsh if pin0 is high
goto main ‘ else loop back to start
flsh:
high 1 ‘ switch on output 1
pause 5000 ‘ wait 5 seconds
low 1 ‘ switch off output 1
goto main ‘ loop back to start
...." </i>
)
Picaxe Programming Editor
version 5.1.5 (Syntax DLL 131072)
Picaxe 08/08M
If you put
<code><pre><font size=2 face='Courier'>symbol outrelay = pin0 </font></pre></code>
Or even => <code><pre><font size=2 face='Courier'>High pin0 </font></pre></code>
or => <code><pre><font size=2 face='Courier'>Low pin0 </font></pre></code>
you obtain one error of unknown symbol...
you can see here =><A href='http://www.elpato.homeip.net/ventas/picaxeweb/errorpin0.jpg' Target=_Blank>External Web Link</a>
So if you use <code><pre><font size=2 face='Courier'>High 0 </font></pre></code> works ok
but how can I reference to pin0 to check it status?
like <code><pre><font size=2 face='Courier'>if pin0 = 1 then startmotor </font></pre></code>
Picaxe_manual2.pdf on page 72 say:
<i>"Examples:
Checking an input within a loop.
main:
if pin0 = 1 then flsh ‘ jump to flsh if pin0 is high
goto main ‘ else loop back to start
flsh:
high 1 ‘ switch on output 1
pause 5000 ‘ wait 5 seconds
low 1 ‘ switch off output 1
goto main ‘ loop back to start
...." </i>
)