Before being able to download DeviceScript programs to your microcontrollers, you will need to flash the native runtime. The native runtime is currently available for ESP32 and RP2040.
Of course, reality is a bit more complicated at the support table gives you a rundown of which features is enable for the various SKUs of those chipsets.
Flash Firmware
In Visual Studio Code, you will run the Flash Firmware... command that will drive through choosing the correct board, downloading the firmware and launching the appropriate tool to flash it. This is typically a one-time experience, until you have a need to update the runtime.
For ESP32, you will need to have esptool installed. For RP2040, it is a UF2 file copy to the bootloader drive so you don't need any tool.
Board configuration
After this step, you will need to import the board configuration to setup the pins, I2C and SPI services. DeviceScript maintains a list of known devices for which it has a configuration, including the QT Py ESP32-C3 or the Feather ESP32-S2. It is also possible to fork pinout configurations (and contribute them back).
The configuration is loaded by imported the module for your board.
import { pins, board } from "@dsboard/adafruit_qt_py_c3"
Text editor powered by tinymce.