Hi, i have a little problem with this great library.
When i create a rectangle and i want to move it using the command bitmap.move(x,y), if I move the rectangle on the first row the command works, if I want to place it in the second row does not work and the display is blank.
I get the same result if i try to place the rectangle or my double arrow manually.
Is it a bug of the library or where i'm doing wrong?
Another question.
If i want to place a different object in the different place of the lcd how can i do?
I tried to use the bitmap.move(x,y) command, but i think the command is in override mode, because the result is the last bitmap.move(x,y) command.
I have a lcd 16x2 and i using the standard LCD library, i tried the New LCD Crystal library, but it's the same.
My Arduino is the model UNO r3 and my O.S. is Mac OsX SnowLeopard.
The LCD is connected in standard mode.
Here my scratch:
#include <LiquidCrystal.h>
#include <LCDBitmap.h>
LiquidCrystal lcd(13,12,11,9,8,7);
LCDBitmap bitmap(&lcd, 0, 0);
void setup(){
lcd.begin(16,2);
bitmap.begin();
}
void loop(){
bitmap.move(7,1);
doubleArrow();
bitmap.move(5,1);
crossRect();
delay(500);
}
void crossRect(){
bitmap.rect(0,8,4,15,ON,UPDATE);
bitmap.line(1,10,3,13,ON,UPDATE);
bitmap.line(1,13,3,10,ON,UPDATE);
}
void doubleArrow(){
bitmap.pixel(17,8,ON,UPDATE);
bitmap.line(16,9,18,9,ON,UPDATE);
bitmap.line(15,10,19,10,ON,UPDATE);
bitmap.line(15,13,19,13,ON,UPDATE);
bitmap.line(16,14,18,14,ON,UPDATE);
bitmap.pixel(17,15,ON,UPDATE);
}
Thank you for the help and sorry for my english, but isn't my first language