Getting Started

(lily) #1

Chapter 11 The Butterfly LCD


//Send "Called LCD_puts with 'string'" to the
void OnPUTS(char *pStr)


PC.

LCD_puts(&pStr[4],0); //Overlook the PUTS part of the string

/Send "Called LCD_putc" to PC.
(char *PUTCstr)
it;

LCD_putc(digit,PUTCstr[5]);

/If ON call LCD_Colon(1);

oid OnCOLON(char *pOnoff)

if(pOnoff[5] == '1')

{
sendFString(PUTS_msg);
sendString(pStr);


}


//PUTC,digit,character
//Call LCD_putc(digit, character);
/
void OnPUTC
{
uint8_t dig


sendFString(PUTC_msg);


digit = (uint8_t)(PUTCstr[4] - 48);// convert to integer


if(digit <= 6)
{


LCD_UpdateRequired(1,0);
}


}


//CLEAR
//Call LCD_Clear();
//Send "Called "LCD_Clear()" to the PC
void OnCLEAR(void)
{
sendFString(CLEAR_msg);
LCD_Clear();
}


//COLON,on/off
//Verify that on/off is either "ON" or "OFF"
/
//Else call LCD_Colon(0);
//Send "Called LCD_Colon" to the PC.
v
{
sendFString(COLON_msg);


{
LCD_Colon(1);

Free download pdf