ADAFruit RGB Shield - Clear Row

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
careless
 
Posts: 10
Joined: Fri Feb 28, 2014 7:21 pm

ADAFruit RGB Shield - Clear Row

Post by careless »

Hi there,

I have a 16x2 RGB Shield in Negative flavour.

I was wondering if there is a command like "lcd.clear()" or "lcd.setCursor(0,1)" that I can use to clear a certain row, rather than the entire screen.

is there such a function that will allow me to do that?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: ADAFruit RGB Shield - Clear Row

Post by adafruit_support_bill »

lcd.clear() will clear the entire screen. To clear a single row, you would need to set the cursor to the start of the row and write 16 spaces.

http://arduino.cc/en/Reference/LiquidCr ... xMpxfldV8H

User avatar
careless
 
Posts: 10
Joined: Fri Feb 28, 2014 7:21 pm

Re: ADAFruit RGB Shield - Clear Row

Post by careless »

figured as much... that's how i currently have my code written. maybe i'll just create a var with 16 spaces and call it ClearRow and call that instead of having " " everywhere.

Thanks for the quick reply, Bill!

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

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