ESP_ERR_INVALID_ARG on write to RGB LED on ESP32-S3-DevKitC-1

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
RetiredWizard
Posts: 4
Joined: Wed Apr 07, 2021 3:37 pm

ESP_ERR_INVALID_ARG on write to RGB LED on ESP32-S3-DevKitC-1

Post by RetiredWizard » Mon May 16, 2022 2:45 am

Hello,

I've flashed the "Generic ESP32-S3 (SPIRAM) Espressif" version v1.18 on to an ESP32-S3-DevKitC-1-N8R2 and I'm trying to turn on the RGB LED using the following code:

Code: Select all

import machine,neopixel
pixels = neopixel.NeoPixel(machine.Pin(48),1)
pixels.fill( (100,100,100) )
pixels.write()
The pixels.write() command returns the following traceback:

Code: Select all

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "neopixel.py", line 1, in write
OSError: (-258, 'ESP_ERR_INVALID_ARG')
Looking at the neopixel library on github the error appears to be coming from the machine.bitstream function.

I can't tell if there's a problem with the arguments the neopixel class is passing to bitstream or if the bitstream function is just not ready for this board yet.

Any insights/help would be greatly appreciated. Thanks!

marcidy
Posts: 133
Joined: Sat Dec 12, 2020 11:07 pm

Re: ESP_ERR_INVALID_ARG on write to RGB LED on ESP32-S3-DevKitC-1

Post by marcidy » Mon May 16, 2022 7:30 pm

Can you raise an issue on github? ESP_ERR shouldn't bubble up like that.

User avatar
RetiredWizard
Posts: 4
Joined: Wed Apr 07, 2021 3:37 pm

Re: ESP_ERR_INVALID_ARG on write to RGB LED on ESP32-S3-DevKitC-1

Post by RetiredWizard » Mon May 16, 2022 7:55 pm

Ok, will do.

thanks.

Post Reply