[{"data":1,"prerenderedAt":46},["ShallowReactive",2],{"example-page-pico-neopixel":3},{"id":4,"info":5,"parts":6,"wired":14,"refs":15,"nets":16,"moreNets":40,"code":41},"pico-neopixel","Raspberry Pi Pico (RP2040) with an Arduino sketch: a WS2812B strip with 8 LEDs on GP2 runs a rainbow. The RP2040's PIO block generates the data signal (800 kbit\u002Fs); the LEDs decode it from the level and light up in the schematic. The strip runs on 5 V (USB VBUS); the Pico's 3.3 V level is below the WS2812B's VIH (note in the console). Change the sketch in the code editor and start it; the logic analyzer shows the signal on GP2.",[7,10,12],[8,9],"rpi_pico",1,[11,9],"vdc",[13,9],"ws2812_strip",false,{"A1":8,"LED1":13,"VBUS":11},[17,28,34],{"name":18,"pins":19},"0",[20,23,25],[21,22],"A1","GND",[24,22],"LED1",[26,27],"VBUS","−",{"name":29,"pins":30},"5V",[31,32],[24,29],[26,33],"+",{"name":35,"pins":36},"DIN",[37,39],[21,38],"GP2",[24,35],0,{"file":42,"lang":43,"text":44,"lines":45,"more":14},"sketch.ino","cpp","\u002F\u002F WS2812B strip (8 LEDs) on GP2: runs as a rainbow. The data comes from the PIO block of the RP2040.\n#include \u003CAdafruit_NeoPixel.h>\n\nconst int PIN = 2, COUNT = 8;\nAdafruit_NeoPixel strip(COUNT, PIN, NEO_GRB + NEO_KHZ800);\n\nvoid setup() {\n  strip.begin();\n  strip.setBrightness(80);\n}\n\nvoid loop() {\n  static uint16_t hue = 0;\n  for (int i = 0; i \u003C COUNT; i++) strip.setPixelColor(i, strip.ColorHSV(hue + i * 65536L \u002F COUNT));\n  strip.show();\n  hue += 512;\n  delay(20);\n}",18,1796304409836]