RP2040-Zero Hello World

Introduction

Overview

Setup Arduino IDE

Code

#include <NeoPixelConnect.h>

#define LED_BUILTIN 16

NeoPixelConnect p(LED_BUILTIN, 1, pio0, 0);

byte r=255,g=0,b=0;

void setup(){
    Serial.begin(115200);
    delay(2000);
    Serial.println("Hello World!");
}

void loop(){
  if(r > 0 && b == 0){
    r--;
    g++;
  }
  if(g > 0 && r == 0){
    g--;
    b++;
  }
  if(b > 0 && g == 0){
    r++;
    b--;
  }
  p.neoPixelFill(r, g, b, true);
  delay(10);
}

References

[1] https://www.waveshare.com/wiki/RP2040-Zero

[2] https://de.aliexpress.com/item/1005004967926448.html

[3] https://github.com/MrYsLab/NeoPixelConnect

[4] https://arduino-pico.readthedocs.io/en/latest/index.html