Seeed Xiao ESP32-C3 Expansion board
- Device: Seeed Xiao ESP32-C3 or Adafruit QT Py C3
- Home
DeviceScript import
You must import XiaoExpansionBoard
to access the shield services.
In Visual Studio Code, click the wand icon on the file menu and select "Seeed Xiao ESP32-C3 Expansion board".
import {
XiaoExpansionBoard,
startCharacterScreenDisplay,
} from "@devicescript/drivers"
const shield = new XiaoExpansionBoard()
const display = await startCharacterScreenDisplay(await shield.startDisplay())
const buzzer = await shield.startBuzzer()
const button = await shield.startButton()