Development
Raspberry Pi
- Write the latest "Raspberry Pi OS Lite" to an SD Card (enable SSH, SSH key authentication, and note the hostname)
- Start the Raspberry Pi, open a command prompt and
ping <hostname>.local Open a terminal
ssh <username>@<host>.local sudo apt -y install git # copy id_rsa from host computer chmod 600 ~/.ssh/id_rsa ssh-keygen -p -f ~/.ssh/id_rsa # remove password git clone git@github.com:joeferner/unisonht.git ./unisonht/scripts/raspberry-pi-setup.shInstall "Remote Development" extension pack for VSCode.
- Connect VSCode via ssh (Ctrl+Shift+P -> Remote-SSH: Connect to Host...)
<username>@<host>.local
Development
RUST_BACKTRACE=1 RUST_LOG=debug cargo runIR Remote Control
ir-keytable # find gpio_ir_recv and note the rcX and use it in the next command
ir-keytable -s rc1 -t -c -p all