plinth/browser/serial
Types
pub type SerialPort
Functions
pub fn read(
port: SerialPort,
callback: fn(BitArray) -> Nil,
) -> Promise(Result(Nil, Nil))
pub fn request_port() -> Promise(Result(SerialPort, Nil))
pub type SerialPort
pub fn read(
port: SerialPort,
callback: fn(BitArray) -> Nil,
) -> Promise(Result(Nil, Nil))
pub fn request_port() -> Promise(Result(SerialPort, Nil))