Infinitelly Calculating Digits of Pi on Rapsberry Pi Pico
MAX7219 Module | Pico |
---|---|
VCC | 3V3 (pin 36) |
GND | GND (pin 38) |
DIN | GP19 (pin 25) |
CS | GP17 (pin 22) |
CLK | GP18 (pin 24) |
Makes use of:
C code from:
Adapted to this use.
The code, as is, REQUIRES the target platform to support DOUBLE type to work (and works faster if the platform suports LONG LONG), if you try to port it to, for example, AVR, double will get demoted to float and break the code. Some work will be required to make it compatible. (Thanks to @dwillmore who pointed this out).
https://www.linkedin.com/pulse/pi-on-pi-happy-pi-day-2023-2nd-generation-machine-cristiano-monteiro