displaysensorbutton/gettemp.sh

4 rivejä
78 B
Bash
Executable File

#!/bin/sh
echo "6" > /dev/ttyUSB0
TEMP=`dd if=/dev/ttyUSB0 count=1`
echo $TEMP