Skip to content

hugokernel/203LedMatrix-driver.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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

About

203 Led matrix bash driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages