Different LCD display
I have a few LCD displays, some long (64 chars x 2 lines) some short (16 chars x 1 line) and (16 chars x 2 lines).
I thought I may be able to use these with the HAH but putting a 2 line display just causes the text to split over the 2 lines. I've had a look for the LCD bit of code but struggling.....any pointers?
I would like to use a 16x2 display to show a little more information
Hi Mark,
how did the 20x4 LCD work out for you?
was possibly thinking about doing the same
cheers
Andy
Hi Mark,
thanks for the reply, thats interesting to know, i may go for a 2x16 line display over a 4x20 in that case - was looking at the blue backlite with white text and mounting the HAH in a nice black alu case to allow it to fit in with my other home kit
still playing with setting up RF and Roomnodes so will look into compiling the code in a bit
thanks
Andy
I updated the xap-livebox in the BETA to have a 128 character lcd buffer. The web interface was not changed but you should be able to drive this directly with an XAP message as long as you've made the appropriate changes in your AVR firmware.
Get the beta and let me know how it goes. I also corrected the weather applet weather-applet-help-required in /etc_ro_fs/plugboard/samples
# /etc_ro_fs/update-dev hah-beta.dbzoo.com
CAVEAT: Read about code changes to the penlight library in 307-1
Brett
Thanks Brett,
Mark, do you have any info on modifying the AVR ? - where do i start :)
Thanks
Andy
Mark,
I was very puzzled over the jeenodes breaking, as mine were hanging off my joggler and I'd not gotten around to switching them back to the livebox I thought I do this and see what happens with 307.1. To my suprise they didn't work properly !?
After lots of head scratching I finally figured out why.
The penlight library that has been in place since i implemented the plugboard had two functions in the STRINGX library for justification and these are broken. They work backwards.
print("RIGHT JUSTIFY "..stringx.rjust("110",8,"0"))
print("LEFT JUSTIFY "..stringx.ljust("110",8,"0"))
RIGHT JUSTIFY 11000000 <--- this is technically a left justitication.
LEFT JUSTIFY 00000110 <--- and this is really a right justification.
If you run the same code for the new library this would now output.
RIGHT JUSTIFY 00000110 <-- and that is correct.
LEFT JUSTIFY 11000000 <-- so is this.
BUT all the code in the HAH was written to workaround that BROKEN library so when I uplifted the penlight library in 307.1 my code suddenly was all wrong, as the bug had been fixed in the library itself.
Anyway long story short 307.2 fixes this problem and I'm now running this myself with the jeenode off of the livebox and its happy again.
Brett
Thanks Brett & Mark
Is this what you're looking for, line 50 onwards :- http://code.google.com/p/livebox-hah/source/browse/trunk/userapps/arduino/liveboxHAH/liveboxHAH.pde