I've made a few example scripts and stuck them on GitHub: https://github.com/bennuttall/astro-pi-examples/
Examples so far:
- Random Sparkles
- Conway's Game of Life
- Minecraft Colour
- Minecraft Map
- Colour Match

Ah, you may have an older version of the API installed on your Pi.OllieT wrote:To get the conway game to work had to change 'ap.set_pixel(x, y ,color)'
to 'ap.set_pixel(x, y, color[0], color[1], color[2])' otherwise a 'set_pixel() takes exactly 6 arguments' error was thrown
Code: Select all
cd ~/astro-pi-hat
git fetch origin
git reset --hard origin/master
sudo python setup.py install
sudo python3 setup.py installCode: Select all
python3 -c "import astro_pi as ap; print(ap.__version__)"
python -c "import astro_pi as ap; print(ap.__version__)"