Hi!

here is the script i use to display messages on the LCD:

init the display:
=================

#! /bin/bash
cd /tmp/
cd /wetter/uncached/29.*/LCD_H
printf "\x0C" > screen
printf "1" > clear
printf "1" > clear
printf "1" > home
# printf "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" > screen





write messages:
===============

#! /bin/bash
cd /tmp/
# Sensor values
MSG[1]="$1"
MSG[2]="$2"
MSG[3]="$3"
MSG[4]="$4"
# Sensor names can be whatever you like
TEMP[1]="$5"
TEMP[2]="$6"
TEMP[3]="$7"
# TEMP[4]="$8"
cd /wetter/29.*/LCD_H
printf "1" > home

msg2=""
# for INDEX in 1 3 2 4
for INDEX in 1 3 2
do
         msg=`printf '%-10s%-10s' "${MSG[$INDEX]}" "${TEMP[$INDEX]}"`
         msg2="$msg2""$msg"
done

# last line just for long text
msg=`printf '%-20s' "${MSG[4]}"`
msg2="$msg2""$msg"

printf "$msg2" > screen






        cheers,
        Zoff.

patyrk wrote:
> Hello again
> I've built myself a LCD display based on Hobby Boards design with some
> minor changes. Instead id three push buttons I wired PIO.0 to a
> transistor which turns backlight on an off.
> When I write 0 to PIO.0 backlight turns on.
> But when I clear the display or write to the message PIO.0 also changes.
> Could other PIO.0 PIO.1 PIO.2 be left alone while writing to the
> display?
>
> And another question about displays. I figured out that message has 4x20
> characters. I have 2x16 LCD. The order is 1 line  , 20+4 chars(not
> displayed) and then second line. What if I would use 4x40 display?
>
>
> P4trykx
>
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to