wiring looks good to me… which demo are you using the full geometry demo one or the simple hello world one?
Just the simple hello world one (https://github.com/timothybrown/Spark-Core-Sundries/blob/master/DigoleSerialDisp_Demo.cpp).
Did you uncomment the lines for i2c?
#define _Digole_Serial_I2C_
and
DigoleSerialDisp digole(0x27); //I2C
Yep, the code was as-is from the github, and then I uncommented those two lines. Perhaps I got a bad screen? I’ll try that code with the other displays once I get home tonight.
@Hootie81, I tried the same code on all of my other screens and still had no luck getting past the welcome screen. I tested running a few other apps (like the Blinking LED) just to make sure that the Spark itself was receiving the programs I flashed to it. I think I’m running out of ideas at this point
maybe try increasing the delay? change the 500 to 2500 and see what happens, might just give it a bit more time to start up
No dice on increasing the delay time. @peekay123 or @Hootie81 (or anyone else), is there any way I can test to see if the D0/D1 pins are working? Since the screens are obviously powering up, that’s the only other thing I can think of trying. Sorry this is being such a pain to get started.
@pere I will be testing with my display tonight.
Did you (@peekay123) make up the u8glib in response to this thread?
And how is the lib working?
I found some great prices on sh1106 displays and later find out that the available libraries are a little sparse
@officeboy, porting u8glib ended up being too much of an effort so I gave up.
I also got a cheap OLED display that looks like the one mentioned. According to the eBay listing this one actually uses SSD1306. However, I have no luck getting it to work using the Adafruit library which is also available on build.spark.io. Anyone got one of these working with Spark Core?
@krophi, how are you powering the display (3.3v or 5v via Vin)? Do you have pull-up resistors on both I2C lines?
3.3V. No, I don’t.
However, I just connected the display to an Ardunio Uno as described in the Adafruit tutorial and it still didn’t turn on at all. Could it be that the part is faulty?
Guys,
may be I’m here too late, but the pictures seems to mention 1.3" OLED, and trust me, I scratched my head with these one some month ago, just because the controller is not SSD1306 but SH1106 and that make a difference, because Adafruit Lib (as far as I used it) was not able to drive SH1106 controllers.
But you’re in luck, I was able to drive them (from Arduino) with MicroLCD (Aka MultiLCD) and U8GLib because they have driver for SH1106. I will bet on U8Glib for Particle devices, it’s really a very good library with lots of fonts and feature, I use it day by bay, and I will use it on Particle (hoping port will be done ;-))
Here my 2 cents !
@Charly, I looked at U8Glib which I really like and gave up on porting it as it is too much effort IMO.
Yeah, I know this, I took some time one day and gave up also, it’s a pitty because it’s really cool but it has very lot of feature and source code files, Also the Author is really cool and opened to discuss.
But it’s on my list also, may be I will give it a try at least for only one LCD at first (this reduce sources) just to try.
It’s on my top 2 libraries to port (which will requires effort), the 2nd one is RadioHead RF universal library !!
@charly, perhaps the author can help you. The Core/Photon are very close to Arduino in many ways so its should be easy for someone who knows how to get around the code.
Yeah that’s correct, not sure will be a good idea to add it to WEB IDE except if we want 100 opened tab
@charly, no way that will work on IDE. It would be cool if the author made a flat file folder with only the files needed.
The Arduino 1.18 version hosted on github seems much cleaner in term of folder organization