LCD Plus - Demo code with 3 line LCD

Information and discussion regarding Firewing shields

LCD Plus - Demo code with 3 line LCD

Postby bitfogav » Sat May 04, 2013 4:37 pm

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?.
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: LCD Plus - Demo code with 3 line LCD

Postby bitfogav » Sat May 04, 2013 5:14 pm

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
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: LCD Plus - Demo code with 3 line LCD

Postby David John Barker » Sat May 04, 2013 5:29 pm

is the line completely blank? or does is display something? Can you upload a picture?
User avatar
David John Barker
 
Posts: 490
Joined: Thu Nov 08, 2012 12:21 pm

Re: LCD Plus - Demo code with 3 line LCD

Postby bitfogav » Sat May 04, 2013 5:57 pm

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
line2.jpg (41.79 KiB) Viewed 15711 times
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: LCD Plus - Demo code with 3 line LCD

Postby David John Barker » Sat May 04, 2013 6:27 pm

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
User avatar
David John Barker
 
Posts: 490
Joined: Thu Nov 08, 2012 12:21 pm

Re: LCD Plus - Demo code with 3 line LCD

Postby bitfogav » Sat May 04, 2013 8:01 pm

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.

lcd3line.jpg
(note: I added line 3)
lcd3line.jpg (34.63 KiB) Viewed 15706 times
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: LCD Plus - Demo code with 3 line LCD

Postby David John Barker » Sun May 05, 2013 8:27 am

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...
User avatar
David John Barker
 
Posts: 490
Joined: Thu Nov 08, 2012 12:21 pm

Re: LCD Plus - Demo code with 3 line LCD

Postby fire_that_wing » Mon Dec 26, 2016 10:34 pm

Hello,

What does _board_id mean? if it is 12 then u got no pwm-control over LCD+ backlight? Just on/off? Right?
fire_that_wing
 
Posts: 2
Joined: Mon Dec 26, 2016 8:57 pm

Re: LCD Plus - Demo code with 3 line LCD

Postby David John Barker » Tue Dec 27, 2016 10:22 am

That only applies if you are using the PIC18 series of MCU
User avatar
David John Barker
 
Posts: 490
Joined: Thu Nov 08, 2012 12:21 pm

Re: LCD Plus - Demo code with 3 line LCD

Postby fire_that_wing » Tue Dec 27, 2016 10:32 pm

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.
fire_that_wing
 
Posts: 2
Joined: Mon Dec 26, 2016 8:57 pm

Next

Return to Shields

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x