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

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

let counter = 0;
setInterval(async () => {
  console.log("Hello, Wokwi!", counter++);
  await lightBulb.toggle();
}, 1000);