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

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

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

Postby dxh62 » 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
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

Postby adafruit_support_bill » 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: 16072
Joined: Sat Feb 07, 2009 9:11 am

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

Postby aufder » 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: 12
Joined: Tue Jan 15, 2013 9:07 pm

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

Postby adafruit » 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: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

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

Postby aufder » 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: 12
Joined: Tue Jan 15, 2013 9:07 pm


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]