Add SI7005

This commit is contained in:
Edward Emelianov
2025-10-11 21:10:55 +03:00
parent 675b02f1a3
commit 7f85861d6c
10 changed files with 276 additions and 18 deletions

16
I2Csensors/PCA9548 Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
if [[ $# != 1 || $((-(-$1))) != $1 ]]; then
echo "Usage: $0 cnannel" >&2
exit 1
fi
if [[ $1 < 0 || $1 > 7 ]]; then
echo "Channel number should be from 0 to 7" >&2
exit 1
fi
echo $((1 << $1))
i2ctransfer -y 6 w1@0x70 $((1 << $1))
i2cdetect -y -r 6