Skip to content

Instantly share code, notes, and snippets.

View hailfinger's full-sized avatar
💭
Breaking things

Carl-Daniel Hailfinger hailfinger

💭
Breaking things
View GitHub Profile
@Hermann-SW
Hermann-SW / camver
Last active January 28, 2022 13:47
Determine Raspberry camera version connected to CSI-2
#!/bin/bash
dt=`vcgencmd get_camera | grep "detected=1"`
if [ "$dt" = "" ]; then
echo "no camera detected"
else
if [ "`which i2cdetect`" = "" ]; then
echo "i2cdetect not installed" ; exit
fi
cd `dirname $0`
if [[ ! -a camera_i2c ]]; then