beautypg.com

Paxar Gold 6037EX User Manual

Page 149

background image

Function Reference 4-113

void main(void)

{

vidSetPage(0);

// Clear page 0

vidScroll(0, 0, 3, 11, 0, 0x07);

vidSetPage(1);

// Clear page 1

vidScroll(0, 0, 3, 11, 0, 0x07);

vidPutCursor(0, 0, 0);

// Write to page 0

vidPutStr("This is page 0", 0x70, 0);

vidPutCursor(0, 0, 1);

// Write to page 1

vidPutStr("This is page 1", 0x70, 1);

// Prompt user

printf("\nPress any key to\nswitch to page 0");

_getch();

vidSetPage(0);

// Switch pages

printf("\nPress any key to end");

// Prompt user

_getch();

vidScroll(0, 0, 3, 11, 0, 0x07);

// Clear page 0

vidSetPage(1);

// Clear page 1

vidScroll(0, 0, 3, 11, 0, 0x07);

vidSetPage(0);

// Set to page 0

}