1 2 3 4 5 6 7 8 9 10 11 12
// Declare JS functions to call #[link(wasm_import_module = "env")] extern { // Delay using ESP32 thread sleep pub fn delay_ms(m: u32); // Write out to ESP32 logs pub fn log_write(v: *const u8, l: i32); }