RPicoG Dice – a Very Easy Electronic Dice Collection for Every RPG Using a Raspberry Pi Pico : 5 Steps
Once you wired up everything, plug-in your pico on your pc and save these 3 file.py into your pico.
VERY IMPORTANT: Save these file as they are called, therefore, save them respectively “main.py”, “ssd1306.py” and “imu.py”.
After wiring and coding you should test it: plug your pico in your pc OR put some batteries and try turning the encoder up or down, if you want to change section try press the encoder (it has a button built in) and then, when you are down, shake it lightly, it should display every dice and then sum it all up!
Read more here: Source link
