Friday, March 21, 2014

Writing custom python-based menu system on a small lcd

Beaglebone Black + SSD1306 + Buttons Prototype
I wish I could write in C right now to write drivers for this beautiful display.  I could have used lcdproc or something similar that already has a menu system.

As it is I am writing a custom Python program that drives a simple menu system.  Eventually I will load this mini computer with my useful programs so I can carry it along.

Show here is the prototype for a simple OLED display with some buttons connected to a BeagleBone Black.  The menu system for now supports simple navigation (up, down, etc) and supports submenus.  Lots more work to be done.  I used drivers from Adafruit for GPIO and the "py-gaugette" library for basic screen initialization, pixel and text rendering work.  I had to write a few more pixel level stuff like reversing pixels.  Not such a problem with Python.

At least I can figure the basics of this OLED unit, I can deal with pixel memory addressing and bit masking, but I just cannot figure yet the hardware screen initialization stuff.

No comments:

Creating ipip tunnels in RedHat 8 that is compatible with LVS/TUN. Every few seasons I built a virtual LVS (Linux Virtual Server) mock up ju...