const int dataPin = 28; /* DS */
const int clockPin = 26; /* SHCP */
const int latchPin = 27; /* STCP */
void setup() {
// put your setup code here, to run once:
pinMode(dataPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(latchPin, OUTPUT);
Serial1.begin(115200);
Serial1.println("Hello, Raspberry Pi Pico W!");
}
int pattern = 0b10101010;
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, LSBFIRST, pattern);
digitalWrite(latchPin, HIGH);
delay(500);
pattern = ~pattern; // Invert the pattern
}