Command line control


would it be possible to make the base command accept parameters that are the actual commands
eg python digitalWrite(4,1)
so that you could then script basic commands from outside of python ?

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 .

The functions should work when used from the command line and if you face any problems do let us know.


Nice - thanks