Go Down

Topic: Error 21 in example code for 4D System LCD (Read 623 times) previous topic - next topic

Jesiah

Hi, I'm getting error 21 when I'm trying to compile the example code taken from http://playground.arduino.cc/Code/SerialLCDLibrarySuite

It's saying:
'class button' has no member named 'define'

How would I go about solving this please?  I am using the 4D System 43PT screen and the Arduino Mega 2560 controller.

Second question I have is how do I know that the LCD is set up in SCS rather than GFX?  There was only the one pmmc file on 4D Systems web page so I loaded it up in the serial environment found in workshop 4.

Thanks,
Jes

AWOL


From the source, it looks like it is "dDefine", not "define".
Code: [Select]
class button: public area {
public:
    button();
    void dDefine(Serial_LCD * lcd,
                 uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy,
                 item item0,
                 uint16_t textColour1, uint16_t highColour1);
    void dDefine(Serial_LCD * lcd,
                 uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy,
                 item item0,
                 uint16_t textColour1, uint16_t highColour1, uint16_t lowColour1,
                 uint8_t size0=9);
    void dStringDefine(Serial_LCD * lcd,
                       uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy,
                       String text0,
                       uint16_t textColour1, uint16_t highColour1);
    void dStringDefine(Serial_LCD * lcd,
                       uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy,
                       String text0,
                       uint16_t textColour1, uint16_t highColour1, uint16_t lowColour1,
                       uint8_t size0=9);
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up