Follow

Today, I've successfully connected a temperature sensor to the bus of my .

braveheart:~# echo -n "Temp in °C = " ; Thex=`/usr/sbin/i2cget -y 3 0x4a 0 b | cut -d"x" -f2 | tr '[:lower:]' '[:upper:]'` ; echo "ibase=16 ; $Thex" | bc
Temp in °C = 20

· · Web · 0 · 0 · 3
Sign in to participate in the conversation
Linux.Pizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome!