Open pruwait opened 2 years ago
May be I must to use SPI Bus component or another data/clock pins on this board... Need more information.
Methods esp32_i2s & esp32_rmt does not support dotstar. Hardware SPI pins 13+14, 18+23 is using with ethernet on this board.
NeopixelBus not working for WT32-ETH01 + dotstar.
I changed wire to pin 13 + pin 14 (hardwere spi). Neopixelbus works but so bad... FastLed works normally for esp32 + apa102.
substitutions:
device_name: "canopy"
esphome:
name: canopy-light
platform: ESP32
board: wemos_d1_mini32
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "${device_name} Hotspot"
password: "!secret ota_pass"
captive_portal:
web_server:
port: 80
light:
# - platform: fastled_spi
- platform: neopixelbus
type: BGR # neopixelbus
# chipset: APA102 # fastled_spi
variant: DotStar #neopixelbus
# data_pin: GPIO23
# clock_pin: GPIO18
data_pin: GPIO13
clock_pin: GPIO14
# rgb_order: BGR # fastled_spi
num_leds: 150
name: "StairStrip"
id: staircase
# max_refresh_rate: 1ms
method: # neopixelbus
type: spi # neopixelbus
# speed: 500kHz # neopixelbus
bus: hspi # neopixelbus
With neopixelbus compiling have warnings:
Compiling /data/canopy-light/.pioenvs/canopy-light/FrameworkArduino/esp32-hal-spi.c.o
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c: In function 'spiTransferBytesNL':
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
^
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_data8 = &last_data;
And almost all operations working with errors. I cant change color or brightness normally. Only On/Off.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
I can use esphome with fastled_spi light platform. But effect speed too low.
I want to use NeoPixelBus, but apa102 is not working with my code.
hardware: WT32-ETH01 + 74AHCT125N
Which version of ESPHome has the issue?
2022.1.4
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
core-2022.2.6
What platform are you using?
ESP32
Board
esp-wrover-kit
Component causing the issue
NeoPixelBus
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response