Skip to content

Instantly share code, notes, and snippets.

View ffalt's full-sized avatar
📍
there

ffalt ffalt

📍
there
View GitHub Profile
search=" 26 "
i=0
while [ "$i" -le 4 ]; do
# echo "Trying bus $i"
probe=`i2cdetect -y "$i" 2>&1`
if echo "$probe" | grep -q "$search"
then
echo "$i"
exit 0
fi
@ffalt
ffalt / led_control.md
Last active May 2, 2025 15:45
Lincstation LED commands (tested on TrueNAS Scale 24.10)

Warning

i2cset commands with wrong parameters can damage your system. Handle with care!

The bus number may change after a restart, don't hardcode it into your scripts.

Before you use any commands on this page you MUST find out the bus number for the led control on your system

Run

i2cdetect -y 0