#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPL3XvWT_aYr"
#define BLYNK_TEMPLATE_NAME "poject3"
#define BLYNK_AUTH_TOKEN "a_cy_dD6vN3osGAVkjSQ7tF7rw-pxV5_"

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>



char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";


#define DATA_PIN 22  // Pin connected to DS of 74HC595
#define LATCH_PIN 21  // Pin connected to STCP of 74HC595
#define CLOCK_PIN 23 // Pin connected to SHCP of 74HC595

// How many of the shift registers
#define NUM_SHIFT_REGS 2

byte m;
void setup() {
  pinMode(DATA_PIN, OUTPUT);
  pinMode(CLOCK_PIN, OUTPUT);
  pinMode(LATCH_PIN, OUTPUT);
 
  m = B00000011;

}

void loop() {
  bitSet(m, 1);
  writeRegisters();
}


void writeRegisters() {
  // Set and display registers
  digitalWrite(LATCH_PIN, LOW);
  digitalWrite(CLOCK_PIN, LOW);

  shiftOut(DATA_PIN, CLOCK_PIN, LSBFIRST, m);

  digitalWrite(CLOCK_PIN, HIGH);
  digitalWrite(LATCH_PIN, HIGH);
}
74HC595