Подключение дисплея к 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.
 
 
 

10 lines
292 B

  1. #!/bin/bash
  2. LCDPROG="/opt/lcd/lcd595out /opt/lcd/set1.map"
  3. ATWORK=`cat /run/smart_sda.txt|grep "Power_On_Hours" | awk '{ print $10 }'`
  4. BAD=`cat /run/smart_sda.txt|grep "Reallocated_Sector_Ct" | awk '{ print $10 }'`
  5. LINES=`echo -e "\x08 HDD health\nPOH $ATWORK BAD $BAD"`
  6. $LCDPROG "$LINES"