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

11 lines
285 B

  1. #!/bin/bash
  2. LCDPROG="/opt/lcd/lcd595out /opt/lcd/hdd.map"
  3. #\x08\x04\x01 \x03\x05\x02
  4. USED=`df -h /dev/sda1|grep sda1|awk '{ print $3 }'`
  5. FREE=`df -h /dev/sda1|grep sda1|awk '{ print $4 }'`
  6. LINES=`echo -e "\x08\x04\x01\x06 Used $USED\n\x03\x05\x02\x07 Free $FREE"`
  7. $LCDPROG "$LINES"