Open mishomvp opened 1 year ago
Did you try my update at: https://github.com/esphome/esphome/pull/4257
like:
external_components:
- source: github://pr#4257
components: [fastled]
refresh: always
light:
- platform: fastled
rgb_order: GRB
chipset: WS2812
pin: GPIO4
num_leds: 30
restore_mode: RESTORE_AND_OFF
name: "${device} NeoPixel Light"
#effect: colored_strobe
id: my_light
Hello, With your update, everything compiles without a problem. But the LED(WS2812) doesn't want to light up. I installed Tasmota for testing and everything works without problems. Any ideas?
That is strange. i use the same config as above and it did work fine for me.
With ESP32-S3? I will also try an external WS2812.
I am watching this issue and seeing the same issue with LED not lighting up. (They flash on power up).
. I have a Heltec LoRa Wifi V3 which I am trying to use to drive a WS2812 based 120 LED string (via pin 7). (I am using config for board 'esp32-s3-devkitc-1' as the this hardware doesn't appear to have been added yet.)
Thank you for the github pull request, this removed the errors completely.. I had to make one minor edit (add 'pr') to the URL.
external_components:
Top thanks for your testing. I have also updated the example i give above.
I can confirm that it works for me on an esp32, bur not an esp32s3 platform.
I think that this is a larger issue with Esp32s3 (or the WiFi_LoRa_32_V3 board). Inputs can be read but output don't appear to get set (not just for FastLED).
It appears as though, on the esp32s3, gpio_reset_pin() needs to be called first for pins that are configured to be used for other peripherals. https://esp32.com/viewtopic.php?t=28028
(I have not confirmed this, other than it agrees with observations.)
Maybe I need to create another issue for this.
Did you ever found solution for esp32s3?
Not for the exp32s3, other than use a different board (the Heltec V2 boards use the ESP32), but I would still like to know how to fix this.
I have recently gotten some other libraries to work on the esp32s3, namely for the SX1262 radio chip (Lora and LoRaWAN) over ISP, so I should have another look at this. If you are interested, my ESPhome code is here: https://github.com/PaulSchulz/esphome-esp32s3
I will pickup some more FastLED LED's (the last lot have gone on to be used) and give this a test.
When I am trying to compile (for the setup below) I am getting the following error: '.piolibdeps/gpio-blink/FastLED/fastpin.h:207:24: error: static assertion failed: Invalid pin specified
Is there a different board definition I could use?
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
I have been able to install the FastLED library directly and use a custom component to run a NeoPixel led using the library on a ESP32-S3 board.
Details are in the commit here: https://github.com/PaulSchulz/esphome-esp32s3/commit/c36747512140aa49abff9d441c01c02307248a53
I now have a 'minimal' custom_component that works with NEOPIXELS
See: https://github.com/PaulSchulz/fastled_dev
Minimal functionality, and everything is hardcoded as I don't know enough about the ESPHome Python setup.
Hi, I've the T-Dongle-S3 and with this patch it works smooth. How will it be commited to the orginal brunch?
Can you try the PR i made for the FastLed and see of that will fix your issue: https://github.com/esphome/esphome/pull/4257
Can you try the PR i made for the FastLed and see of that will fix your issue: esphome/esphome#4257
That is the relevant part of my my configuration and works without any problems
# - source: github://pr#4257
external_components:
- source: github://pr#4257
components: [fastled]
refresh: always
light:
- platform: fastled
chipset: APA102
data_pin: GPIO40
clock_pin: GPIO39
num_leds: 1
rgb_order: BGR
name: "FastLED SPI Light"
- platform: monochromatic
output: output_38
name: "LCD Backlight"
id: lcd_backlight
spi:
clk_pin: 5
mosi_pin: 3
Also try: https://esphome.io/components/light/esp32_rmt_led_strip
Can you help me, how to map my config?
Also watching this as I am getting the same "now it compiles but doesn't work" behavior with the onboard SK6812 on an M5 Stamp C3 (https://docs.m5stack.com/en/core/stamp_c3):
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
external_components:
- source: github://pr#4257
components: [fastled]
refresh: always
light:
- platform: fastled
chipset: SK6812
name: "SK6812 Light"
id: LED
pin: GPIO2
num_leds: 1
rgb_order: GRB
fastled_clockless works perfectly on a Stamp Pico (https://docs.m5stack.com/en/core/stamp_pico) with the same SK6812, but ESP32-PICO-D4 chip
hi there, just to let you know, esp32_rmt_led_strip works ok with the one ws2812 led on my esp32-s3-devkitc-1 board. (GPIO48)
pr#4257 does compile with GPIO48 but the led never turns on.
stable esphome doesn't compile with GPIO48, afair it does with GPIO4 but I haven't been trying to attach a ws2812 strip on gpio 4
Two questions, why hasn't this been pushed to esphome. It seems silly that it's taking this long to merge it. Second does this work if I set the chipset to ws2812b?
The problem
Hello,
board: Lolin ESP32-S3 I'm trying to get the LED (WS2812) on the board to light up. But it doesn't want to compile with that exact pin(gpio 38). Thanks in advance!
Which version of ESPHome has the issue?
2022.12.6
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.1.7
What platform are you using?
ESP32
Board
Lolin ESP32-S3
Component causing the issue
fastled
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response