Class: Dont have a member called ...
hello, have made changes liquidcrystal library, made gedit in mi linux machine, hace put library arduino library folder , when try use function in code, gcc there no member called function name.
i have added standar library:
into liquidcrystal.h
virtual void write(uint8_t);
virtual void write(const char *str);
void autocenter(bool);
bool autocenter();
void clearline(uint8_t);
into liquidcrystal.cpp
void liquidcrystal::autocenter(bool autocenter) {
_autocenter = autocenter;
}
bool liquidcrystal::autocenter(void) {
return(_autocenter);
}
the problem comes when try use function of autocenter, there no method iun class , comparing others methods , equal...
i have added standar library:
into liquidcrystal.h
virtual void write(uint8_t);
virtual void write(const char *str);
void autocenter(bool);
bool autocenter();
void clearline(uint8_t);
into liquidcrystal.cpp
void liquidcrystal::autocenter(bool autocenter) {
_autocenter = autocenter;
}
bool liquidcrystal::autocenter(void) {
return(_autocenter);
}
the problem comes when try use function of autocenter, there no method iun class , comparing others methods , equal...
can post @ least part of sketch tries use autocenter member, , exact error message.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Class: Dont have a member called ...
arduino
Comments
Post a Comment