Brussels / 1 & 2 February 2025

schedule

Cyber-Physical WebAssembly: Interfacing with USB and I2C Hardware


Did you know you can use WebAssembly on IoT devices and microcontrollers? In this talk, we explain why anyone would do such a thing, and how to connect WebAssembly applications to hardware using USB and I2C interfaces.

WebAssembly allows embedded developers to use modern toolchains, diverse programming languages and sandboxing technology on truly tiny devices like ESP32 microcontrollers. Support for these use-cases is improving with the newly formed Embedded SIG and new interfaces for connecting WebAssembly applications to underlying hardware via USB and I2C.

We will cover the WASI-USB and WASI-I2C proposals and explains how to embed a device driver in WebAssembly. The session also takes a look at the overhead of these interfaces and embedded WebAssembly in general. The session closes with a demo of a USB device driver running inside of WebAssembly.

Speakers

Photo of Merlijn Sebrechts Merlijn Sebrechts
Photo of Michiel Van Kenhove Michiel Van Kenhove

Links