Testing DeviceScript on W5100S-EVB-Pico
This project aims to test how easy DeviceScript is

Introduction
While browsing, I found this project on Hackster and got curious about DeviceScript - a professional TypeScript developer experience for microcontrollers.
Currently DeviceScript supports only ESP32 and RP2040-based boards.
What is TypeScript?
TypeScript is a version of JavaScript, but with extra features like strong typing, which makes it easier to catch errors. Developed by Microsoft, TypeScript is great for large projects and is liked by developers because it helps them write better code and offers advanced tools. It's becoming more popular for building big web applications.
Blinking LED with DeviceScript
Originally I wanted to add EVB-Pico products to list of supported boards, but found that SPI is not yet fully supported by DeviceScript.
Thus for this project I tried running Blink sample code on W5100S-EVB-Pico board.
The sample code is as following and can be found on DeviceScript page:
import { pins } from "@dsboard/pico"
import { startLightBulb } from "@devicescript/servers"
// start a lightbulb server on pin GP1
// and store client in `led` variable
const led = startLightBulb({
pin: pins.P1,
})
// start interval timer every 1000ms
setInterval(async () => {
// read current brightness
const brightness = await led.intensity.read()
// toggle on/off
const newbrightness = brightness > 0 ? 0 : 1
// apply new brightness
await led.intensity.write(newbrightness)
}, 1000)
The code is pretty intuitive and easy to understand.
The installation and code running process can be found at below video:
Next steps
Once SPI is supported by DeviceScript, we can port ioLibrary and add our board to DeviceScript.