#!/bin/bash
sudo umount /mnt/usb
while [ ! -f /mnt/usb/INFO_UF2.TXT ]; do
    sudo mount /dev/sda1 /mnt/usb -o umask=000
    sleep 1
done
set -e
# cargo build --release --example waveshare_rp2040_zero_neopixel_rainbow
cargo run --release 
# elf2uf2-rs $1
# cp $1.uf2 /mnt/usb
sudo umount /mnt/usb
