rm-hull / luma.examples

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers.
MIT License
367 stars 140 forks source link

How to Easily Present Strings Onto 1.12" Mono OLED (128x128, white/black) Breakout – SPI #146

Closed AlexLandherr closed 3 years ago

AlexLandherr commented 3 years ago

I'm considering purchasing this OLED display: https://thepihut.com/products/1-12-mono-oled-128x128-white-black-breakout-spi

for a Raspberry Pi Zero W GPS project and am wondering how to just print simple strings representing the positional data produced by the GPS receiver.

I have gone through the examples for this display and am still not sure how to print strings to it that has the information I want. I would like to know how to do this before purchasing the display in question.

thijstriemstra commented 3 years ago

Take a look at the https://github.com/rm-hull/luma.examples/blob/master/examples/sys_info.py example. It shows how to print various diagnostic info to the screen.

AlexLandherr commented 3 years ago

Thank you for the suggestion! And this would work for the display I linked to if I understand you correctly?

thijstriemstra commented 3 years ago

Yes. There's a reference to the luma.oled Python library on the page you linked, so it should be officially supported by pihut.