import { pins } from "@dsboard/esp32_devkit_c"
import { startLightBulb } from "@devicescript/servers"
const lightBulb = startLightBulb({
  pin: pins.P4,
});

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