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, Wokwnnnnni!", counter++);
  await lightBulb.toggle();
}, 1000);