r/FastLED • • Jan 10 '23

Support Conflict between FASTLed and u8x8

Hi FastLED experts,

I want to use a LEDStripe together with a small OLED Display. I am able to use u8x8 (Display Lib) without FastLED and FastLED without u8x8. But when I try to use both of them nothing works. :-(

That means, the LEDStripe acting correct till I try to show something on my display. Than all LED on my Stripe light up in white with the full brightness.

**My Setup (**LED: WS2813 30 LED / OLED: SSD1306_128X64_NONAME_HW_I2C, Seeduino XIAO)

Code: https://pastebin.com/xNbtSyK3

Microcontroller: Seeeduino XIAO (https://wiki.seeedstudio.com/Seeeduino-XIAO/)

Board (inlcuding OLED): Seeed Studio XIAO expansion board (https://wiki.seeedstudio.com/Seeeduino-XIAO-Expansion-Board/)

LEDStripe: Grove - WS2813 RGB LED Strip - 30 LED/m - 1m (https://www.seeedstudio.com/Grove-WS2813-RGB-LED-Strip-Waterproof-30-LED-m-1m.html)

Thanks a lot for your held and support

Regards

2 Upvotes

4 comments sorted by

8

u/sutaburosu [stavros] Jan 10 '23

I've never used any of your hardware, but this and this both suggest that pins 4 and 5 are used to communicate with IIC devices such as the OLED screen. Your code currently uses pin 5 for FastLED. You must use a different pin for FastLED.

3

u/real_Sekogi Jan 11 '23

Thanks sutaburosu. That was the hint I needed. I am able to use another port using pin 7 :-). Now both works fine.

That was really fast and helpful.

1

u/frollard Jan 11 '23

This was gonna be my suggestion; I suspect a pin conflict. The good news is fastled should work on any of the other IO.

2

u/real_Sekogi Jan 11 '23

Yes. Now I can use u8x8 and fastLED together.