ribasco / u8g2-rpi-demo

This is a demo for using the U8G2 library on the Raspberry Pi
Apache License 2.0
29 stars 6 forks source link

Blank screen #1

Closed supercrab closed 5 years ago

supercrab commented 5 years ago

Hi

I'm running the code on a Pi 0 with an SSD1322 256x64 screen. I've changed the line that defines which screen we're using and SPI is enabled and shows in dev. I've tried 2 different screens but nothing appears on the screen.

Am I doing something stoopid?

Thanks Mase

supercrab commented 5 years ago

I think I've worked out it out!

My screen has a data/instruction pin and I've hooked it up in 3 wire SPI mode. However, in this mode the first bit of data sent should be the data/instruction flag and the last 8 bits should be the data. I should be sending 9 bits in total but currently the code only sends 8.

Solution: I need to send 9 bits of data via SPI OR write to the data/instruction pin!