#include <ShiftRegister74HC595.h>
// https://github.com/Simsso/ShiftRegister74HC595
const int dataPin = 5; /* DS */
const int clockPin = 19; /* SHCP */
const int latchPin = 18; /* STCP */
ShiftRegister74HC595<2> sr(dataPin, clockPin, latchPin);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
sr.setAllHigh(); // set all pins HIGH
delay(500);
sr.setAllLow(); // set all pins LOW
delay(500);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}