I have recently started mbed.
For a start, I'm trying to use a LCD display, so that the following experiments can be debugged with it.
For some reason, the LCD does not show the second row properly.
As shown below, "lcd.locate(8,1)" should put the variable at 8th position from the left.
But the column number does not change the position at all.
The row number, on the other hand, does work well.
The included library is
http://mbed.org/projects/cookbook/svn/TextLCD/trunk
The circuit and the actual lcd are shown in the images.
Could anyone help me for this issue?
#include "mbed.h"
#include "TextLCD.h"
TextLCD lcd(p24,p25,p26,p27,p28,p29,p30);
int main() {
int count = 0;
lcd.locate(4,0);
lcd.printf("Hello World!");
lcd.locate(0,1);
lcd.printf("count = ");
while(1) {
lcd.locate(8,1);
lcd.printf("%04d", count);
count++;
wait(1.0);
}
}
I have recently started mbed.
For a start, I'm trying to use a LCD display, so that the following experiments can be debugged with it.
For some reason, the LCD does not show the second row properly. As shown below, "lcd.locate(8,1)" should put the variable at 8th position from the left. But the column number does not change the position at all. The row number, on the other hand, does work well.
The included library is
http://mbed.org/projects/cookbook/svn/TextLCD/trunk
The circuit and the actual lcd are shown in the images.
Could anyone help me for this issue?