pimoroni / automation-hat

Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini
https://shop.pimoroni.com/products/automation-hat
MIT License
121 stars 42 forks source link

Automation Hat Mini LCD from other languages #31

Open BryanCrotaz opened 4 years ago

BryanCrotaz commented 4 years ago

You provide a python interface, but no C library etc. I'm trying to interface from C# via wiringPi by reverse engineering the python code, but cannot get images to appear. Could you provide a document listing all the control commands and GPIO pins (eg CS) that are relevant, and show the waveforms required to make it work?

BryanCrotaz commented 4 years ago

Can I just leave the chipselect pin low the whole time, or does it need to be cycled?

Gadgetoid commented 3 years ago

I don't have the time or expertise to support anything beyond Python at the moment- too many products, and just one me.

Details of the pins are here- https://pinout.xyz/pinout/automation_hat_mini

The display is the ST7735, the Python library is here which can be a useful starting point - https://github.com/pimoroni/ST7735-python

Other details are available in the display datasheet- https://www.displayfuture.com/Display/datasheet/controller/ST7735.pdf

Looks liek there might already be a C library out there somewhere, I found this at least: https://github.com/Matiasus/ST7735

BryanCrotaz commented 3 years ago

Could you add those notes to the front page of the docs?

Gadgetoid commented 3 years ago

I don't see any reason why not. The pinout is already there but a datasheet link and some examples of alternate libraries wouldn't go amiss.