Getting Started

(lily) #1

Chapter 11 The Butterfly LCD


o Send CLEAR while displaying text on th
o Verify function by seeing the LCD clear

e LCD

reuse that to call the functions on

o

o Load the string and point pStr to it.
o Call LCD_puts(*pStr, scrollmode);
o Send “Called LCD_puts with ‘string’” to the PC where string is the
string sent.


  • CLEAR
    o Call LCD_Clear();
    o Send “Called “LCD_Clear()” to the PC

  • COLON#
    o If # == 1 call LCD_Colon(1);
    o E
    o Send “Called LCD_Colon” to the PC where # is the one sent.

  • SETC##
    o Convert ## characters to a numerical value ‘input’
    o Call SetContrast(input);

  • COLON to test LCD_Colon(char show);
    o Send COLON,on/off where on/off is either ON or OFF
    o Verify function by seeing colons on LCD turn on or off

  • SETC## to test char SetContrast(char input);
    o Send SETC## where ## is from 0 to 15 and sets the contrast.


We will use this to design the functions needed on the Butterfly. We already have
a command processor designed, so we will
receipt of the correct command.



  • PUTCdigitcharacter
    o Call LCD_putc(digit, character);
    Send “Called LCD_putc” to PC where # are the values sent in
    decimal

  • PUTF
    o Set a pointer, pFlashStr, to a string in flash
    o Call LCD_puts_f(
    pFlashStr, scrollmode);
    o Send “Called LCD_puts_f” to the PC.

  • PUTSstring


lse if # == 0 call LCD_Colon(0);
Free download pdf