Page 1 of 2
LCD Plus - Demo code with 3 line LCD

Posted:
Sat May 04, 2013 4:37 pm
by bitfogav
Hi, I'm testing the demo code here
http://www.firewing.info/pmwiki.php?n=FirewingUser.LCDPlus But for some reason I can't get the Date to show up on the second line of the LCD.
This is the code which sets the posistion to line 2
- Code: Select all
Dogm.WriteAt(2,1,GetDay(Date.DayOfWeek))
Dogm.WriteAt(2,5,Str(Date.Day,2))
Dogm.WriteAt(2,8," ", GetMonth(Date.Month)," 20",Str(Date.Year,2))
Now the LCD ive got is a 3 line LCD so is there anything that needs to be setup in code for example, do one of the Imports need configuring so that the Import knows that it is a 3 line LCD, so that the Date will show up?.
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Sat May 04, 2013 5:14 pm
by bitfogav
I have found the setup here
http://www.firewing.info/pmwiki.php?n=Library.LCDDogm And added the code below, but the LCD still doesn't display the Date on line 2..
- Code: Select all
#option LCD_DOGM = DOGM_163 ' 3 line LCD support
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Sat May 04, 2013 5:29 pm
by David John Barker
is the line completely blank? or does is display something? Can you upload a picture?
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Sat May 04, 2013 5:57 pm
by bitfogav
Yes David the line is completely blank.. Ive looked at the Modules Dogm and LCD but I can't see where the Option for LCD_DOGM is located?

- line2.jpg (41.79 KiB) Viewed 78626 times
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Sat May 04, 2013 6:27 pm
by David John Barker
Thanks for the screenshot - just what I needed. It looks like the install was built with and older LCD library. I'm sorry about that. Here is what to do to fix:
(1) Download latest Firewing 1.0.0.0 B
(2) Install - you don't need to uninstall the previous version
This should patch in the new LCD modules. Rebuild and program the sample program again. I've tested the new download here and it fixes the problem, but please let me know if it fixes the problem for you.
By the way, when installing a new update, your sample files don't get updated. If you want the updated samples, just go to you "My Documents" folder and delete "\Firewing\Samples". Next time you start the IDE, the new samples will be copied over to "My Documents" - you can do this at anytime to revert back to the original samples, you don't need to re-install Firewing.
I would recommend you do this to install the new "progLCDPlus.bas" example program
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Sat May 04, 2013 8:01 pm
by bitfogav
Yes thats fixed it David, Thank you.. btw I see what the update is now to the Dogm Module

Certainly alot of function in this LCD Plus shield.

- (note: I added line 3)
- lcd3line.jpg (34.63 KiB) Viewed 78621 times
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Sun May 05, 2013 8:27 am
by David John Barker
Glad you have it working, thanks for the new screenshot.
> Certainly alot of function in this LCD Plus shield
I find it extremely useful - it's one of my favourites...
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Mon Dec 26, 2016 10:34 pm
by fire_that_wing
Hello,
What does _board_id mean? if it is 12 then u got no pwm-control over LCD+ backlight? Just on/off? Right?
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Tue Dec 27, 2016 10:22 am
by David John Barker
That only applies if you are using the PIC18 series of MCU
Re: LCD Plus - Demo code with 3 line LCD

Posted:
Tue Dec 27, 2016 10:32 pm
by fire_that_wing
thnx for the answer, but it did not quite answer my question.. o:-)
Anyway it is cause R2-BLUE main board, using 18F25K22, does not have hw-pwm in pin 26 (RB6 port), right?
Do u mean that dimming is actually made using hw-pwm feature? I thought that dimming would have been made by software... my bad.. so 8bit R2 could have dimming-feature, only if rewired with pwm-out port CCP4 or CCP5 (and reconfigured) accordingly OR replacing cpu with... what cpu?
16bit and 32bit versions of R2 have different boards and due more flexible cpu they run demo ok?
From where is that _board_id actually digged out? by compiler?
thnx. adv.