diff --git a/justfile b/justfile index 8ddc020..b4e1be4 100644 --- a/justfile +++ b/justfile @@ -40,3 +40,18 @@ userapps: cbindgen just userapp gallery just userapp gif just userapp gboy + +copy-userapp app: + cp ./target/thumbv8m.main-none-eabihf/release-binary/{{app}} /run/media/$(whoami)/PICOCALC/{{app}}.bin + +copy-userapps: + #!/bin/bash + just userapps + just copy-userapp calculator + just copy-userapp snake + just copy-userapp gallery + just copy-userapp gif + + DEV=$(lsblk -o LABEL,NAME -nr | awk -v L="PICOCALC" '$1==L {print "/dev/" $2}') + udisksctl unmount -b "$DEV" + udisksctl power-off -b "$DEV" diff --git a/selection_ui/src/lib.rs b/selection_ui/src/lib.rs index 20e02c6..ac4e9ab 100644 --- a/selection_ui/src/lib.rs +++ b/selection_ui/src/lib.rs @@ -6,7 +6,6 @@ use abi::{ display::Display, get_key, keyboard::{KeyCode, KeyState}, - println, }; use alloc::vec::Vec; use embedded_graphics::{