Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 112
CHAPTER 10 • MEMORY MANAGEMENT 111
///////////////////////////////////////////////////////////////
// ExampleCode10.1.c
///////////////////////////////////////////////////////////////
#use click500menu.lib
void Mode1( void );
void Setup1( void );
void TaskA( void );
char nearBuffer[10];
far char farBuffer[10];
const far char Message1[10] = “Hello “;
const far char Message2[10] = “Bonjour “;
const far char Message3[10] = “Hola “;
const far char Message4[10] = “G’day “;
struct
{
int messageIdx;
long dataArray1[256];
long dataArray2[256];
ClickUtilTime timeRecord;
} flashData;
void main( void )
{
ClickMenuAddMode(Mode1, Setup1, BLUE, 0, 0);
ClickMenuAddTask(TaskA, GREEN, 0, 0);
ClickMenuStart();
}
void Mode1( void )
{
far char *tmpPtr;
if (ClickBtnPressed())
{
flashData.messageIdx++;
if (flashData.messageIdx > 3)
{