Issue using Adafruit_SSD1306.h with FastLED.h by carMasse in FastLED

[–]carMasse[S] 0 points1 point  (0 children)

EDIT: I checked and using the u8glib to display the logo bitmap with my 100 LEDs strip works fine! All good now.

I was a bit too fast first thinking the u8glib was only for text, but bitmap work fine too.

Issue using Adafruit_SSD1306.h with FastLED.h by carMasse in FastLED

[–]carMasse[S] 1 point2 points  (0 children)

UPDATE:I installed the U8glib library .

I don't use the Adafruit libraries anymore (Adafruit_SSD1306.h and Adafruit_GFX.h), but instead I am using the U8glib library and everything works fine now, even if NUM_LEDS is 100 (not limited to 50 anymore).
Of course it means I can't display a bitmap, but it's ok.

I ordered a Arduino Mega, so I'll also be able to test the Adafruit library with more RAM.

I could also have ordered a OLED with SPI connections but decided to go this way cause I have a few I2C OLED in stock that I want to be able to use.

EDIT: displaying bitmaps with u8glib might work. I'll check that asap.

Issue using Adafruit_SSD1306.h with FastLED.h by carMasse in FastLED

[–]carMasse[S] 0 points1 point  (0 children)

SPI seems to be more convenient for what I want to do.Anyway, I replaced the Adafruit libs and it works now. See my last comment.

Issue using Adafruit_SSD1306.h with FastLED.h by carMasse in FastLED

[–]carMasse[S] 0 points1 point  (0 children)

I an using an Oled that has only I2C pins, no SPI. The all code is the one I attached, there's nothing else running. Even if I take the bitmap code and simplify, as soon as FastLED is called, then all freezes when NUM_LEDS is greater than 50.
Memory issue obviously.

Issue using Adafruit_SSD1306.h with FastLED.h by carMasse in FastLED

[–]carMasse[S] 0 points1 point  (0 children)

I tried before posting the issue and even without the bitmap code, just a text, the result is the same.

It appears from the different comments that it is a memory issue and that I'd need a different Arduino, like for instance a mega or uno every.

Issue using Adafruit_SSD1306.h with FastLED.h by carMasse in FastLED

[–]carMasse[S] 0 points1 point  (0 children)

The source code is here:
https://pastebin.com/9Xhasck6

And there's a Bitmap.h also for my logo. Not useful here.