With Mbed TextLCD lib, LCD (PID 181) has no cursor?

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
garygid
 
Posts: 3
Joined: Thu Jun 28, 2012 9:05 pm

With Mbed TextLCD lib, LCD (PID 181) has no cursor?

Post by garygid »

With this 2x16 LCD display, the 0x0C (display On) and 0x08 (display Off) work OK.
However, the Cursor On/Off control (the 0x02 bit) seems to do nothing.
Likewise, the Blink-Character control (the 0x01 bit) seems to do nothing.

I want to use the Cursor to edit the displayed text.

If this LCD has no cursor or character-blink, what display does?

Thanks, Gary

EDIT: The Mbed library does not actually set the LCD's address when its
locate function is called, so the Cursor could not be seen.
I added a SetColRow routine, then my SetOnOff routine worked to turn
the Cursor and Blink On and Off.
Last edited by garygid on Fri Jun 29, 2012 3:59 pm, edited 2 times in total.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: LCD (PID 181) has no cursor?

Post by adafruit »

hi what code, specifically, are you using? we test the LCDs with the arduino LiquidCrystal Library - can you try that?

User avatar
garygid
 
Posts: 3
Joined: Thu Jun 28, 2012 9:05 pm

Re: LCD (PID 181) has no cursor?

Post by garygid »

Does that mean that this 181 display DOES have (should have) an underline cursor,
and the blinking-character "cursor"?

If so, I will look at the Arduino LC Library.

Perhaps the simple Mbed TextLCD library does not position the Cursor
like I thought it would. I will check that out. THANKS

This LCD does not match the pictures,... no silkscreen of the meaning of the 16 pins
on the back side.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: LCD (PID 181) has no cursor?

Post by adafruit »

sounds like there's a problem with MBED's library. all char LCDs should have cursors

User avatar
garygid
 
Posts: 3
Joined: Thu Jun 28, 2012 9:05 pm

Re: LCD (PID 181) has no cursor?

Post by garygid »

Yes, the Mbed TextLCD library did not actually set the address when I thought it would.

I added a SetColRow routine and then called that before calling my SetOnOff
routine. Now the Cursor and Blink both work.

Thanks for your kind help.

Locked
Please be positive and constructive with your questions and comments.

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