Подключение дисплея к Raspberry Pi через сдвиговый регистр 74HC595 http://blindage.org/?p=4835
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

9 lines
163 B

  1. #!/bin/bash
  2. cputemp=$(</sys/class/thermal/thermal_zone0/temp)
  3. temp1=$(( cputemp/1000 ))
  4. temp2=$(( cputemp%1000 ))
  5. temp2=$(( temp2/100 ))
  6. echo -e "$temp1.$temp2"