The class WS2812 is defined twice in the picobricks.py file that was delivered on the hardware and the file in GitHub. The second one overrides the first and the methods in the second one don't match the instructions in the ebook linked to in the QR code (Pico-Bricks-ebook-7.pdf). It looks like the ebook on GitHub (Pico-Bricks-ebook-final.pdf) has removed the instructions that use the WS2812 class. Also, the autonomous_lighting_01.py example code in GitHub uses the wrong methods.
The class WS2812 is defined twice in the picobricks.py file that was delivered on the hardware and the file in GitHub. The second one overrides the first and the methods in the second one don't match the instructions in the ebook linked to in the QR code (Pico-Bricks-ebook-7.pdf). It looks like the ebook on GitHub (Pico-Bricks-ebook-final.pdf) has removed the instructions that use the WS2812 class. Also, the autonomous_lighting_01.py example code in GitHub uses the wrong methods.