On 2/1/07, Chris <[EMAIL PROTECTED] > wrote:
But would be cool to have a function to directly jump to the next line
in owfs. writing >60 characters always takes some time...
I was thinking that it would be nice to have two more entries under LCD_H
and LCD_M. They would be "rowpos" and "colpos", and they would be used to
manually change the position of the cursor before using the "screen" object
to display text. If they weren't touched the positioning would work the
same as it does now. The two new objects would be reset back to some
default inactive value after an access to screen, message, home, or clear.
If only one of the new objects is changed before a screen access, the other
is assumed to be 0 (the first row or column).
If the third or fourth row was specified, then add twenty to the column and
subtract two from the row. I think that would take care of the 4 row
displays.
Has anyone been able to use the buttons in the hobby-boards design? I
> tried
> it a few months ago and couldn't get it to work. I can't remember the
> problem exactly, but I know that what I tried caused the display to get
> into
> a funky state every time. I think it was when I tried to reset the
latch
> that the button was assigned to (because resetting one latch resets them
> all).
I tried that... you can write 0 to PIO.[0-2] to put your 5V on it... so
you can have blinkenlights with some LEDs... unfortunately you write
some trash characters to the LCD... so the cursor should be in a non
visible area...
Now, when PIO.x is high you can use sensed.[0-2], this reads 1 when the
switch isn't on and 0 when connected to ground. You should use the
uncached-tree for this.
I'll be using the display for a thermostat panel, and two buttons will be
used to change the temperature setting up or down. I think I'd want to use
a latch for the buttons so I don't miss button-presses. If it doesn't look
like the latches on the free pins can be made to work I'll have to use a
DS2406 instead. I plan to use the third free pin to control the backlight
on the LCD. That is if the LCD code can be made to leave those pins alone.
Otherwise, a DS2405.
I took a look at the LCD code. I think all the data going to the DS2408 is
sent by OW_w_pios (towards the bottom of ow_2408.c), and it looks like it is
written a byte at a time. So that's probably where the extra three pins are
being written to. This is the first time I've ever looked at any of this
code, so I could be all mixed up.
-Ben
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers