Well, after a coffee break calm down I now feel like a bit of a muppet, after I changed my init function to tell the LCD to start in 8bit mode first, then drop to 4bit everything works like a dream, this also fixed the OLED which is now working perfectly.foobar77 wrote:To be honest, im on the brink of binning the whole lot.
I went back to a proper LCD and things are fine, right until I add my python program to an init script. Then I get sod all from the display despite the fact that I can see my python application running.
Frustrating.... Yes, Time consuming.. Yes Blowing out my project deadline Yes
Im going back to a duino, these LCDs work just fine there.
If you issue the following initialization sequence (I added a 37 microsecond pause between each to be safe)podman99 wrote:Any chance you can share your init script please?
So your saying with wiring on OLED as 4bit.
Init script set to 8bit then modify down to 4bit and it works ?
I imagine it's something in the HD44780 chip which doesn't reset usually but does on an 8bit/4bit switch... As long as I understand your solution correctly?
Code: Select all
0x08 0x33 0x32 0x28 0x0C 0x06
np. it's still looking good here and I've bounced the pi loads, sent heaps of data to the screen and it is ticking away nicely. I shall leave it running overnight and see what it's looking like in the morning.podman99 wrote:I shall have a test of this tomorrow and let you know. thanks