Just been working with custom LCD characters and found that the createChar() tutorial is out of date with version 1.0 of the IDE.
http://arduino.cc/en/Reference/LiquidCrystalCreateChar
The LCD.write(0); no longer works and can be replaced with LCD.print((char)0);
Working example:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte smiley[8] = {
B00000,
B10001,
B00000,
B00000,
B10001,
B01110,
B00000,
};
void setup() {
lcd.createChar(0, smiley);
lcd.begin(16, 2);
// lcd.write(0); no longer works
lcd.print((char)0);
}
void loop() {}
Thank you mucho! - I just ran into this last night for the first time, and gave up trying to use write(0) since it would not compile. print((char),0) works, and the rest of my "normal" write(x)'s are fine.
After a little more searching, I found this:
http://arduino.cc/forum/index.php/topic,74666.0.html
lcd.write((uint8_t)0);
works also!
Thanks for that write example.
thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you
i spent a long time trying to solve this issue. thank you!!!!
Thanks a lot! It was so useful!