Skip to content

RGB LED on ESP32S3 board #9661

Oct 17, 2022 · 5 comments · 4 replies
Discussion options

You must be logged in to vote

Working Script:

from machine import Pin
from neopixel import NeoPixel

pin = Pin(48, Pin.OUT)   # set GPIO48  to output to drive NeoPixel
neo = NeoPixel(pin, 1)   # create NeoPixel driver on GPIO48 for 1 pixel
neo[0] = (255, 255, 255) # set the first pixel to white
neo.write()              # write data to all pixels
r, g, b = neo[0]         # get first pixel colour

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@A622266
Comment options

@Lobo-T
Comment options

Comment options

You must be logged in to vote
1 reply
@A622266
Comment options

Comment options

You must be logged in to vote
1 reply
@A622266
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by A622266
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment