User Tools

Site Tools


onboard_neopixel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
onboard_neopixel [2026/07/19 13:28] – [NeoPixel Blink Code with Comments] walkeradminonboard_neopixel [2026/07/21 08:51] (current) walkeradmin
Line 1: Line 1:
 ====== OnBoard NeoPixel ====== ====== OnBoard NeoPixel ======
-<color #db5f0b>Jun 2026</color>+<color #db5f0b>Jul 2026</color>
 \\  \\ 
 \\  \\ 
Line 6: Line 6:
 ---- ----
 ===== Introduction ===== ===== Introduction =====
 +\\ 
 +  * Not for Raspberry Pi Pico.
 \\  \\ 
 The RP2040-Zero mini has an onboard NeoPixel. So we cannot use the Raspberry Pi Pico code to use this LED. Instead we need to use some Micro Python specific to the Waveshare (or compatible) device. The RP2040-Zero mini has an onboard NeoPixel. So we cannot use the Raspberry Pi Pico code to use this LED. Instead we need to use some Micro Python specific to the Waveshare (or compatible) device.
Line 76: Line 78:
         #(0, 0, 0)       # Off         #(0, 0, 0)       # Off
  
 +So 255, 0, 0 will give a bright Red. 8, 0, 0 will give a dull Red. You don't have to use values of 255 all the time, you can use lower values to lower the LED brightness.
 \\  \\ 
 \\  \\ 
Line 131: Line 134:
     # Green = 0     # Green = 0
     # Blue  = 0     # Blue  = 0
-    np[0] = (8, 0, 8)+    np[0] = (8, 0, 8)    # I changed the colour from bright Red to a soft Purple.
  
     # Send the colour data to the LED.     # Send the colour data to the LED.
onboard_neopixel.1784467734.txt.gz · Last modified: by walkeradmin