Skip to content

Display Pi (in hex) with your Raspberry Pi and Python on a CRT

Notifications You must be signed in to change notification settings

wa5znu/pi-py-crt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Py CRT

Prints Pi on a CRT, one hexadecimal digit at a time, with a Rasperry Pi and Python.

Pi in hex uses BBP algorithm implementation in Python from https://literateprograms.org/pi_with_the_bbp_formula__python_.html

Sample Image

Deskt with Miniature flat CRT monitor displaying Raspbian boot and a few lines of digits of pi in Hexadecimal

Screen closeup of Miniature flat CRT monitor displaying Raspbian boot and a few lines of digits of pi in Hexadecimal

Setup

  • Edit kernel boot line settings to enable RCA output as described in references
  • raspi-config for overscan/underscan, pixel doubling; used default size 720
  • sudo apt install mg python3 gmp-devel sysvbanner && pip install gmp
  • mkdir -p ~/bin && cp play*.sh ~/bin/ && chmod a+x ~/bin/play*.sh
  • export EDITOR=mg; crontab -e # add "@reboot /home/pi/bin/play.sh" to end
  • sudo reboot

See Also

References

About

Display Pi (in hex) with your Raspberry Pi and Python on a CRT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published