[SOLVED] Need help to get started with a monocrome I2C OLED.

Hello,

I'm not particularly savvy when it comes to electronics, and I could use some help with a project I'm working on.

I bought a 128x64 OLED (SSD1306), and I thought sending something, anything, to show up on this device wouldn't be such a hassle, but I'm completely overwhelmed.

I got the display running with U8GLIB library, but that's not really what I need. I'm looking for the easiest, most straight forward way of lighting up a pixel of my choice.

The end game here is that I have an array of 128 x 64 values (0s or 1s) that I want to translate to being lit up on the screen, not using a graphics library, because that seems like a lot of overhead for what I'm trying to do.

So how would I do this, using no other libraries than Wire, is it possible, should I forget about it?

Thanks for any help or pointers where to head next.

First question is, have you read the datasheet?

RogerRowland:
First question is, have you read the datasheet?

No, seems to me like I have plenty to read, hehe. I guess reading up on this, and I2C in general will make things clearer. I'm not looking for a "oh please make this work for me"-solution, but more of a simple setup, an environment where I could experiment along side reading. And that's where I'm overwhelmed, maybe there is nothing as a simple setup?

I have simple code here: Code that I use for testing out oled displays. No library needed. If you want to light up just one pixel then open up Paint, set the resolution to 128x64, make one dot black, use the attached file to create .hex number from the .bmp image that you made the dot with and jam it into .h file.

LCDAssistant.zip (422 KB)

0miker0:
I have simple code here: Code that I use for testing out oled displays. No library needed. If you want to light up just one pixel then open up Paint, set the resolution to 128x64, make one dot black, use the attached file to create .hex number from the .bmp image that you made the dot with and jam it into .h file.

That's super cool, thank you, I'll check it out tomorrow.

You know what's a drag? To read datasheets while having a fever. :slight_smile:

0miker0:
I have simple code here: Code that I use for testing out oled displays. No library needed. If you want to light up just one pixel then open up Paint, set the resolution to 128x64, make one dot black, use the attached file to create .hex number from the .bmp image that you made the dot with and jam it into .h file.

This is perfect, it's just what I was looking for. Coming from programming to electronics and not vice versa it's really a better way for me to learn to examine code alongside examining the hardware.

Thanks a lot!

No problem. I use and recommend the Adafruit libraries because they usually can do fancy graphics and are more flexible. Every now and then when i'm out out of code space and just need text I'll use that one.

Mike