PaulS:
So what should I do? Change all write to print?
Altogether now: "Post the code that generates the error!"
#include <LiquidCrystal.h>
LiquidCrystal LCD(2,3,4,5,6,7);
void setup()
{
LCD.begin(16,2);
LCD.write((uint8_t)'\0');
}
void loop()
{}
The above code, when compiled in 1.0, only works with the type case (uint8_t) but works without it in 0022. I traced the library code to the following:
arduino 0022 LiquidCrystal.cpp:
inline void LiquidCrystal::write(uint8_t value) {
send(value, HIGH);
}
arduino 1.0 LiquidCrystal.cpp:
inline size_t LiquidCrystal::write(uint8_t value) {
send(value, HIGH);
return 1; // assume sucess <- TYPO Anyone proofread the library???
}
I'm stuck on why using write('\0') won't work in 1.0
The LiquidCrystal.h is fine but 0022 and 1.0
There must be a type cast in 0022 that casts all (const char) into uint8_t in some place that the 1.0 is missing, right?