Interest in adding rotary encoders and frame buffer LCD?
Started by Squar0L




4 posts in this topic
Squar0L

12 posts 4 threads Joined: Oct 2021
21-11-21, 16:47 -
#3
Hi Hans,

I've added wiring to access i2c, and pygame/pygame-menu for framebuffer support. Here is the snippet from the Dockerfile I use to build the image:

Code:
RUN apt-get update && \
    apt-get -y --allow-downgrades install libsdl1.2debian/buster && \
    apt-get -y install git python3-dev python3-pip \
    python3-numpy cython3 python3-smbus portaudio19-dev libportaudio2 alsa-utils wiringpi \
    libffi-dev python3-pbkdf2 python3-tk usbmount libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev \
    exfat-fuse exfat-utils

RUN pip3 install rtmidi2 rtmidi-python pyaudio cffi sounddevice future wifi \
    pyalsaaudio psutil serial RPi.GPIO RPLCD wiringpi pygame==1.9.6 pygame-menu

Pygame fully abstracts out the details of the display. I'm using a 320x240 SPI attached 2.4" Adafruit PiTFT LCD. Not using the resistive touchscreen, I could have. I wrote a rotary encoder python driver to feed into the pygame event queue, to look like a keyboard, so the pygame-menu operates off the encoders. No audible artifacts of any kind when using them during audio play.
This post was last modified: 21-11-21, 16:50 by Squar0L.


Messages In This Thread
RE: Interest in adding rotary encoders and frame buffer LCD? - by Squar0L - 21-11-21, 16:47