You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just wanted to thank you for making bitlash available, I can see it has a lot of potential.
I have a question about using arguments in the called function: I am trying to create a function that passes the pin number to blink an LED.
This function works on the command prompt: function toggle {x = dr(arg(1)); dw(arg(1),!x);}
However I cannot run it in the background, I receive this error message:
run toggle(13),200
-------------------^
unexpected number
I tried passing two arguments including one for a delay like this:
function toggle {x = dr(arg(1)); dw(arg(1),!x); snooze(arg(2));}
but no change...
I tried to look up any info but came up empty. Any ideas?
The text was updated successfully, but these errors were encountered:
just wanted to thank you for making bitlash available, I can see it has a lot of potential.
I have a question about using arguments in the called function: I am trying to create a function that passes the pin number to blink an LED. This function works on the command prompt: function toggle {x = dr(arg(1)); dw(arg(1),!x);}
However I cannot run it in the background, I receive this error message:
run toggle(13),200
-------------------^
unexpected number
I tried passing two arguments including one for a delay like this: function toggle {x = dr(arg(1)); dw(arg(1),!x); snooze(arg(2));}
but no change...
I tried to look up any info but came up empty. Any ideas?
—
Reply to this email directly or view it on GitHub.
Thank you for the prompt reply Bill.
Unfortunately it looks like it won't work, but that's OK... I was just testing it for an idea I had and I can get around it by offloading that work to the external PC.
Hello,
just wanted to thank you for making bitlash available, I can see it has a lot of potential.
I have a question about using arguments in the called function: I am trying to create a function that passes the pin number to blink an LED.
This function works on the command prompt: function toggle {x = dr(arg(1)); dw(arg(1),!x);}
However I cannot run it in the background, I receive this error message:
run toggle(13),200
-------------------^
unexpected number
I tried passing two arguments including one for a delay like this:
function toggle {x = dr(arg(1)); dw(arg(1),!x); snooze(arg(2));}
but no change...
I tried to look up any info but came up empty. Any ideas?
The text was updated successfully, but these errors were encountered: