marcus_422
07-07-2010, 02:21 PM
Hi all,
Have been battling through learning SIOC today and have learnt almost everything from Nico's site so far which has been brilliant!
On the site there is the example of the delay being used to light a led:
Var 1
{
&Led = DELAY 1 400
}
Var 2 name Led Link IOCARD_OUT Output 92
I am trying to find the correct way to use this in conjunction with the CHANGEBIT. What I would like to do is something like this:
&FO_JoyStick64 = CHANGEBIT 0 1
''AFTER A DELAY OF 1 SECOND THEN..."
&FO_JoyStick64 = CHANGEBIT 0 0
Any ideas on how to go about this? My attempts so far have all resulted in errors and have included:
CHANGEBIT 0 DELAY 0 100
DELAY CHANGEBIT 0 0 100
Many thanks in advance,
Marcus
Have been battling through learning SIOC today and have learnt almost everything from Nico's site so far which has been brilliant!
On the site there is the example of the delay being used to light a led:
Var 1
{
&Led = DELAY 1 400
}
Var 2 name Led Link IOCARD_OUT Output 92
I am trying to find the correct way to use this in conjunction with the CHANGEBIT. What I would like to do is something like this:
&FO_JoyStick64 = CHANGEBIT 0 1
''AFTER A DELAY OF 1 SECOND THEN..."
&FO_JoyStick64 = CHANGEBIT 0 0
Any ideas on how to go about this? My attempts so far have all resulted in errors and have included:
CHANGEBIT 0 DELAY 0 100
DELAY CHANGEBIT 0 0 100
Many thanks in advance,
Marcus