As Dave said, we changed the API before the v1.0.0 release to allow passing of the colour in either individual r, g, b values or a 3-tuple containing (r, g, b).
Sometimes you just want to have a bunch of colours declared, like black, white, blue, red, green, and pass the colour in.
Sometimes, you're incrementing and decrementing individual RGB colour values in a loop so you want to pass them in separately.
Currently the best way to update your version of the library is to clone it from git and run "sudo python3 setup.py" or "sudo python setup.py" but before long we'll have it packaged in Raspbian.
To find out what version you have, run the following from the command line:
Code: Select all
python3 -c "import astro_pi as ap; print(ap.__version__)"
python -c "import astro_pi as ap; print(ap.__version__)"
I think it was set at v0.0.0 until we released v1.0.0 and there haven't been any code changes since then.