esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 36 forks source link

missing GPIOs for neopixelbus for I2S methods #1286

Closed powermik closed 4 years ago

powermik commented 4 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.): pip $ esphome version Version: 1.15.0-dev

ESP (ESP32/ESP8266, Board/Sonoff):

ESP32

m5stack - m5stick-c

esp32 - affects all versions

Affected component:

https://esphome.io/components/light/neopixelbus.html

Description of problem:

won't compile with following message: ''' Method ESP32_I2S_0 only supports pin(s) GPIO0, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10, GPIO11, GPIO12, GPIO13, GPIO14, GPIO15, GPIO16, GPIO17, GPIO18, GPIO19, GPIO20, GPIO21, GPIO22, GPIO23, GPIO24, GPIO25, GPIO26, GPIO27, GPIO28, GPIO29, GPIO30, GPIO31. '''

Documentation from neopixelbus states that for BIT_BANG GPIO must be below 32 for the I2S methods it must be lower than 34 See https://github.com/Makuna/NeoPixelBus/wiki/ESP32-NeoMethods

Problem-relevant YAML-configuration entries:

 - platform: neopixelbus 
    variant: SK6812 
    pin: GPIO32
    method: ESP32_I2S_0

Additional information and things you've tried:

works if i patch esphome/components/neopixelbus/light.py to ''' 'ESP32_I2S_0': list(range(0, 34)), 'ESP32_I2S_1': list(range(0, 34)),

'''

stale[bot] commented 4 years ago

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.