RGB LCD (product 398 / 716) cursor() and blink() library functions not working
Moderators: adafruit_support_bill, adafruit

RGB LCD (product 398 / 716) cursor() and blink() library functions not working

by dxh62 on Thu Jan 31, 2013 12:57 pm

Good afternoon,

I have an Adafruit 716 RGB LCD shield installed on an Arduino Mega 2560. The display is working with basic functions (print(), setCursor, clear(), home(), ...) but the cursor(), noCursor(), blink(), noBlink() functions aren't working for me.

For example, the following code prints out "test" but without an underline. In my previous experience with other displays, setting the Cursor field in the display control underlines the characters.
Code: Select all | TOGGLE FULL SIZE
lcd.Cursor()
lcd.print("test");
lcd.noCursor();


Is this a known issue with the hardware or library, and is there a workaround available?

Thank you for your assistance!

Dan

(this is OT but this same 716 kit was shipped w/o the I2C pullup resistors and only had 5 of 6 PB switches. It also had a nice 2x15 female header that didn't seem to belong. Just an FYI!)
dxh62
 
Posts: 1
Joined: Thu Jan 17, 2013 5:11 pm

Re: RGB LCD (product 398 / 716) cursor() and blink() library functions not working

by adafruit_support_bill on Fri Feb 01, 2013 5:53 am

Hi, I will see if I can reproduce the cursor/blink issues later today. In the meantime, if you need the parts that were missing from your kit, please contact support@adafruit.com with a link to this thread.
User avatar
adafruit_support_bill
 
Posts: 29799
Joined: Sat Feb 07, 2009 9:11 am

Re: RGB LCD (product 398 / 716) cursor() and blink() library functions not working

by aufder on Sun Feb 17, 2013 1:44 am

Hi,
I was able to get the blink function working with my new lcd menu system I just put on git.
I had to modify my copy of the library file in the following way. There were actually 2 noBlink() methods defined in Adafruit_CharLCDPlate.py that were duplicates. I renamed one to be like:

def blink(self):
""" Turn on the blinking cursor """
self.displaycontrol |= self.LCD_BLINKON

to mirror the way the other methods are declared.

Then blink works fine.

BTW, check out my menu system at:
https://github.com/aufder/RaspberryPiLcdMenu
Regards,
Alan
aufder
 
Posts: 13
Joined: Tue Jan 15, 2013 9:07 pm

Re: RGB LCD (product 398 / 716) cursor() and blink() library functions not working

by adafruit on Thu Feb 21, 2013 12:30 pm

Thanks for the report, do you mind putting in an issue on github for the original repository? that way we wont forget to fix it next time we do a code review :)
User avatar
adafruit
 
Posts: 11683
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: RGB LCD (product 398 / 716) cursor() and blink() library functions not working

by aufder on Thu Feb 21, 2013 12:49 pm

It appears bbkiwi submitted a change request that includes the blink update.

Being a noob to git, I'll defer to his change for now.
aufder
 
Posts: 13
Joined: Tue Jan 15, 2013 9:07 pm



cron