Closed louisvangeldrop closed 1 year ago
Arg, Control is one of those services you should not instantiate yourself. Check out this doc https://microsoft.github.io/devicescript/developer/mcu-temperature/
Thx. It works now. I searched for mcuTemperature and found the sample using the control object.
Ha I need to fix the docs on Control...
The following code blocks at a Seeed Studio Xiao ESP32C3:
import { Control } from "@devicescript/core"
const control = new Control() // ... const value = await control.mcuTemperature.read()