Raspberry Pi helpers written in Python3
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DaliFonts initial Sep 18, 2018
Fonts initial Sep 18, 2018
Sounds initial Sep 18, 2018
LICENSE initial Sep 18, 2018
README.md update Oct 6, 2018
audio_alsa.py initial Sep 18, 2018
audio_aplay.py initial Sep 18, 2018
audio_simple.py initial Sep 18, 2018
bme280.py update Oct 1, 2018
buzzer.py cleanup Sep 22, 2018
fbi.py framebuffer support Sep 22, 2018
framebuffer.py framebuffer support Sep 22, 2018
input.py update Oct 1, 2018
l3g4200d.py update Oct 1, 2018
menu.py update Oct 6, 2018
midi.py fix corruption in midi.py Sep 22, 2018
morph.py initial Sep 18, 2018
rotary_encoder.py initial Sep 18, 2018
spi_display.py update Oct 6, 2018
ttp229.py update Oct 3, 2018
tts.py initial Sep 18, 2018

README.md

About

Pytorinox is a collection of single file helpers written in Python3.

It is mostly aimed at the Raspberry Pi platform but some components should work with MicroPython on platform like an ESP32 with minor modifications.

Pytorinox is not a traditional Python library and there is no setup.py. It should be sufficient to copy or symlink the helper files you need into the directory with your main application.

Most helper files can be run as a test which also demonstrates how to use them. Additional documentation can found on Robert's Real-Simple Raspi Resources site.

Helper Overview

  • audio_alsa.py - play back wav sounds via alsa lib

  • audio_simple.py - play back wav sounds via simpleaudio lib

  • audio_aplay.py - play back wave sound via external tool (aplay)

  • bme280.py - read temperature, humidity and pressure from bme280 sensor (i2c)

  • buzzer.py - play simple melodies via pwm

  • fbi.py - frame buffer image viewer tool (simple demo of framebuffer.py)

  • framebuffer.py - render an Image into a linux framebuffer device

  • l3g4200d.py - 3 axis gyroscope (i2c)

  • midi.py - extract simple melodies from midi files for use with buzzer.py

  • menu.py - scrollable menus rendered into an Image

  • morph.py - dali clock style text morphing

  • rotary_encoder.py - decoder for rotary encoder switches

  • spi_display.py - render an image on an SPI display (supports several OLED, TFT and E-Ink drivers)

  • ttp229.py - capacitive touch sensor (i2c)

  • tts.py - text-to-speech via external tools (pico2wave, aplay)

License

All code is governed by LICENSE.txt (GPL 3) unless otherwise noted. For alternative licensing please contact the author.

Dependencies

All helper files are stand-alone, meaning they do not depend on other helpers.

Some helper may depend on certain base libraries like

and standard tools like

  • aplay
  • pico2wave

Author

robert@muth.org