int datapin = 12;
int clockpin = 27;
int latchpin = 14;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(datapin, OUTPUT);
pinMode(clockpin, OUTPUT);
pinMode(latchpin, OUTPUT);
int pattern = 0b01010101;
digitalWrite(latchpin, LOW);
shiftOut(datapin, clockpin, LSBFIRST, pattern);
digitalWrite(latchpin, HIGH);
delay(500);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}