MLX90640 for RPi in Rust
# add rust target
rustup target add arm-unknown-linux-gnueabihf
# add toolchain to path
export PATH="<path-to-gcc-arm-xx.xx-xxxx.xx-x86_64-arm-linux-gnueabihf/bin:$PATH"
# example (for RPi OS Bullseye)
export PATH="/home/dan/arm-toolchain/gcc-arm-xxxxxxxxxxxxxxx/bin:$PATH"
# build with target specified
cargo build --target arm-unknown-linux-gnueabihf
#add rust target
rustup target add aarch64-unknown-linux-gnu
# add toolchain to path
export PATH="<path-to-gcc-arm-xx.xx-xxxx.xx-x86_64-aarch64-none-linux-gnu/bin/":$PATH
# example (for RPi OS Bullseye)
export PATH="/home/dan/arm-toolchain/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin:$PATH"
# build with target specified
cargo build --target aarch64-unknown-linux-gnu
Further hints here: https://chacin.dev/blog/cross-compiling-rust-for-the-raspberry-pi
apt install libstdc++-12-dev
scp target/armv7-unknown-linux-gnueabihf/release/thermocam [email protected]:/usr/bin/thermocam scp [email protected]:/home/dan/Bilder/test.jpg . scp [email protected]:/home/dan/Bilder/test.avi . Add startx /usr/bin/thermocam to .bashrc
1296x972 pGAA works (SGRBG10P) 640x480 pGAA works (SGRBG10P) -> buffer size 384000 => 10bit raw bayer packed, 5 bytes for every 4 pixels YUV420 648x486