import { pins } from "@dsboard/esp32c3_bare"
import { startLightBulb } from "@devicescript/servers"

// List of pins: https://microsoft.github.io/devicescript/devices/esp32/esp32c3-bare
const lightBulb = startLightBulb({
  pin: pins.P2,
});

let counter = 0;
setInterval(async () => {
  console.log("Hello, Tyeth!", counter++);
  await lightBulb.toggle();
}, 1500);
Loading
esp32-c3-devkitm-1