ceshi — Esp32 C6 simulation

An interactive Esp32 C6 circuit simulation you can run free in your browser on Velxio, by yaxin.

Sketch code

// ESP32-C6-DevKitC-1 - blink GPIO8 + serial log.
// GPIO8 also drives the board's WS2812 RGB LED; a plain external LED (through
// a 220R resistor to GND) on the same header pin is what this blinks.
#define LED_PIN 8
#include <Bounce2.h>
#define key 20

Bounce2::Button button = Bounce2::Button();
void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  Serial.println("ESP32-C6 ready");

  Button attach(key,INPUT_PULLUP);
  Button interval(5);
button.setPressedState(LOW);

}

void loop() {
  digitalWrite(LED_PIN, HIGH); delay(500);
  digitalWrite(LED_PIN, LOW);  delay(500);
  Serial.println("tick");
}

More projects by yaxin