Hi, Charles. Any progress with testing the library on a PI v2? Is the BCM2836 extremely different than the BCM2835?
Latest posts made by Mr_Tom
-
RE: New Adafruit generic OLED display driver for Raspberry PI
-
RE: New Adafruit generic OLED display driver for Raspberry PI
Update: I setup my OLED in I2C mode and changed the address to 3D, and it worked. But I would still rather use SPI mode.
-
RE: New Adafruit generic OLED display driver for Raspberry PI
I downloaded the older ArduiPi_SSD1306 and tried that, but same thing. Freezes after it runs 'display.begin()'. I changed the RESET and DC in the .h file as you mentioned. I don't understand why I can't access the display in C++, but Python works perfectly. I'm using a Raspberry Pi 2 if that makes a difference, and an SSD1306 1.3" 128x64 purchased from Adafruit.
-
RE: New Adafruit generic OLED display driver for Raspberry PI
Ok. I changed the Raspberry Pi wiring back to Adafruit. I can run Adafruit's Python examples okay. I changed those 2 lines in 'ArduiPi_OLED_lib.h'. I 'sudo make' the library files, and 'sudo make' the example. When I run 'sudo ./oled_demo -o 1' nothing happens.
I put some 'printf' commands in the example for debugging, and it seems to lock up after it calls 'display.begin()'.
I can't find where the function display.begin() is so I can diagnose/debug it further.
-
RE: New Adafruit generic OLED display driver for Raspberry PI
I meant I ignored your OLED pinout. Pins 1-8 on the OLED.
Example; OLED pin 4, my OLED has CS written on it, but you're calling it DATA.
My OLED pin 8 has DATA written next to it. You're calling it CS.Adafruit says DATA should go to RPi pin 19, which is what you say DATA should go to. But you're calling DATA on the OLED as pin 4.
What is the REAL/CORRECT wiring for the RPi2?
-
RE: New Adafruit generic OLED display driver for Raspberry PI
I'm trying to get your library to function. I've already created Python programs for the Adafruit SSD1306 in SPI mode by using the Adafruit python librarys. Now I'm trying to program the display in C++.
But your wiring diagram differs from Adafruit's. What you're calling the RPi pinouts is actually different. Like the RST, DATA, CLK. If I forget the RPi pinout and just follow the name of the function, the only two things I had to change was DC from RPi 16 to 18, and RST from 18 to 22. Then all the named pins matched to Adafruit's pinout. But I don't get any output on my OLED.
What am I doing wrong?