Added new function for pin i/o
Posted: Wed Nov 18, 2015 11:53 pm
Added a new function that will allow for use of i/o from a function
Useful for in if then statements and for math applying to input from a pin.
Example:
Also the below will now work:
Functions can be called with out returning a value:
Syntax is same as normal commands. Just in the form of a function.
Useful for in if then statements and for math applying to input from a pin.
Example:
Code: Select all
if io(pi,0) = 1 then print "Pin high" else print "pin low"
Also the below will now work:
Code: Select all
bla = io(pwi,0)
Functions can be called with out returning a value:
Code: Select all
io(pwo,0,500)
Syntax is same as normal commands. Just in the form of a function.