woody 02/23/2025 11:02 AMHi,
I got the ESP32-S3-DevKitC-1 and flashed it with jag flash esp32s3-spiram-octo
, I'm using SDK version: v2.0.0-alpha.174.
I tried to get the RGB LED running with this program:
import pixel-strip
import gpio
main:
rgb-pin := gpio.Pin 38 --output=true
// while true:
// // sleep --ms=0 => 40 µs
// // sleep --ms=1..9 => 10ms
// // sleep --ms=10..x => 20ms..10+x
// rgb-pin.set 1
// sleep --ms=1
// rgb-pin.set 0
// sleep --ms=1
rgb := pixel-strip.PixelStrip.uart 1 --pin=rgb-pin --invert-pin=false
while true:
rgb.output #[0xff] #[0xff] #[0xff]
print "white"
sleep --ms=1000
rgb.output #[0xff] #[0] #[0]
print "red"
sleep --ms=1000
rgb.output #[0] #[0xff] #[0]
print "green"
sleep --ms=1000
rgb.output #[0] #[0] #[0xff]
print "blue"
sleep --ms=1000
Program compiled and downloaded fine, but on the LED nothing happened. I measured Pin 38 with an Oscilloscope an it stay permanently low. What do I miss in my program? Or is the package buggy?