Getting Started

(lily) #1

Chapter 11 The Butterfly LCD


}

/SETC

oid OnSETC(char *SETCstr)

temp[1] = SETCstr[5];

y size
D_ art_S roll_ e scrolling

}

else if (pOnoff[5] == '0')
{
LCD_Colon(0);
}


}


/
//Call SetContrast(input);
//Send "Called SetContrast(#) to the PC where # is the decimal number
//sent. Note values are from 0 to 15
v
{
char temp[] = {'\0','\0','\0'};
int input;


sendFString(SETC_msg);


temp[0] = SETCstr[4];


input = atoi(temp);


SetContrast(input);


}


// SCROLL
// Start scroll if input == 1
// Stop scroll if input == 0
// Send “Called OnScroll” to the PC
void OnSCROLL(char *scroll)
{
sendFString(SCROLL_msg);


if(scroll[6] == '1')
{
gScrollMode = 1; // Scroll if text is longer than displa
gSc ll ro = 0;
gLC St c Timer = 3; //Start-up delay befor
}
else if (scroll[6] == '0')
{
gScrollMode = 0;
gScroll = 0;


}

Free download pdf