Go Down

Topic: RTC to 4Bit LCD (Read 3995 times) previous topic - next topic


Jan 27, 2009, 09:48 pm Last Edit: Jan 27, 2009, 09:49 pm by mikalhart Reason: 1
Won't compile? ┬áIf you have Arduino 0012 and this won't compile, there is something else wrong and it has nothing to do with your LCD.  What's the error message?


Vancouver Reefer

Oops sorry let me be abit clearer.

I got the RTC working and displaying on my LCD ( Thanks so much ).

No i want to map out the cursor positions on my lcd but everything i try just puts the cursor in random places.

here is my sample code:

#include <LiquidCrystal.h>

// LiquidCrystal display with:
// rs on pin 12
// rw on pin 11
// enable on pin 10
// d0, d1, d2, d3 on pins 5, 4, 3, 2
LiquidCrystal lcd(11, 13, 12, 7, 8, 9, 10);

void setup()
 // Print a message to the LCD.

void loop()
 now i expect it to go to row 4, col 5. But it places it row 2, col 1???

am i missing something here???


Jan 27, 2009, 10:50 pm Last Edit: Jan 27, 2009, 10:53 pm by mikalhart Reason: 1
Am I missing something?

1. Rows and cols are numbered beginning with 0.
2. It's setCursor(column first then row)
3. 54?


Vancouver Reefer

so i just put in:


and it places my cursor on row 4, col 6

any ideas why its not placing it on row 1, col 5????


Jan 27, 2009, 10:55 pm Last Edit: Jan 27, 2009, 10:56 pm by mikalhart Reason: 1
If you want row 1, col 5, do

Code: [Select]
lcd.setCursor(4, 0);


Code: [Select]
lcd.setCursor(01, 15);

Vancouver Reefer

screen is blank????

I had it mapped our great in 4bit mode. now i cant get anything that is logical! lol

any other ideas?

Vancouver Reefer

i dont have to put the numbers in hexidecimal do i?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131