Hi hope this is not a silly question
In the following code the class constructor does not appear to do anything.
I expect to see on the graphics display attached to my Mega 1280 "Hello foo" followed, after a few seconds, by "Hello bar"
I do not see "Hello foo" but I do see "Hello bar"
can anyone help please
//TR6
#include "TR6Display.h"
#include "ks0108.h"
#include "Arial14.h"
TR6Display TR6_Display();
void setup()
{
delay(2000);
GLCD.Init(NON_INVERTED);
GLCD.ClearScreen();
delay(2000);
GLCD.SelectFont(Arial_14);
GLCD.GotoXY(20, 2);
GLCD.Puts("Hello bar");
}
void loop()
{
}
//TR6Display.h
#ifndef TR6Display_h
#define TR6Display_h
class TR6Display
{
public:
TR6Display();
};
#endif
//TR6Display.cpp
#include "Wprogram.h"
#include "TR6Display.h"
#include "ks0108.h"
#include "Arial14.h"
TR6Display::TR6Display()
{
delay(2000);
GLCD.Init(NON_INVERTED);
GLCD.ClearScreen();
delay(2000);
GLCD.SelectFont(Arial_14);
GLCD.GotoXY(20, 2);
GLCD.Puts("Hello foo");
}