https://github.com/hugokernel/203ledmatrix-driver.sh
203 Led matrix bash driver
https://github.com/hugokernel/203ledmatrix-driver.sh
Last synced: 6 months ago
JSON representation
203 Led matrix bash driver
- Host: GitHub
- URL: https://github.com/hugokernel/203ledmatrix-driver.sh
- Owner: hugokernel
- Created: 2011-07-10T14:10:07.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-07-21T12:14:39.000Z (almost 15 years ago)
- Last Synced: 2025-01-23T08:17:19.684Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Bash driver for https://github.com/hugokernel/203LedMatrix
Example code :
#!/bin/bash
SPEED=9
SPACING=0
INTENSITY=1
DIRECTION=1
WATCHDOG=4
DEVICE="/dev/ttyS1"
PARAM="-v 0"
# Set configuration
./ledmatrix-driver.sh -V -x "$DEVICE" "$PARAM" -s $SPEED -l $SPACING -i $INTENSITY -w $WATCHDOG
while true;
do
content="`uptime` - Free `df /home | awk '{ print $5 }' | tail -n 1`"
# Send text for screen
./ledmatrix-driver.sh -V -x "$DEVICE" -m "$content"
sleep 30
done