Hi
would it be possible to make the base grovepi.py command accept parameters that are the actual commands
eg python grovepi.py digitalWrite(4,1)
so that you could then script basic commands from outside of python ?
Thanks
Hi
would it be possible to make the base grovepi.py command accept parameters that are the actual commands
eg python grovepi.py digitalWrite(4,1)
so that you could then script basic commands from outside of python ?
Thanks
Hi Freddie,
We haven’t tested all the GrovePi functions from the command line.
For using digitalWrite, python -c 'import grovepi; grovepi.digitalWrite(4,1)'
does work. You might find this useful http://stackoverflow.com/questions/20859954/run-python-function-in-command-line .
The functions should work when used from the command line and if you face any problems do let us know.
Thanks,
Karan
Nice - thanks