ButterflyMP3

LCD_driver.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LCD_INITIAL_CONTRAST   0x0F
#define LCD_TIMER_SEED   3
#define LCD_FLASH_SEED   10
#define LCD_REGISTER_COUNT   20
#define TEXTBUFFER_SIZE   16
 FIXME: overwrites the FatCACHE!! when big(25 or so)
#define SCROLLMODE_ONCE   0x01
#define SCROLLMODE_LOOP   0x02
#define SCROLLMODE_WAVE   0x03
#define LCD_SET_COLON(active)   LCD_Data[8] = active
#define pLCDREG   ((unsigned char *)(0xEC))
#define LCD_CONTRAST_LEVEL(level)   LCDCCR=(0x0F & level)

Functions

void LCD_Init (void)
void LCD_WriteDigit (char input, char digit)
void LCD_AllSegments (char show)

Variables

volatile char gLCD_Update_Required
char LCD_Data [20]
char gTextBuffer [16]
volatile char gScrollMode
char gFlashTimer
char gColon
char gShowFilename
volatile signed char gScroll

Define Documentation

#define LCD_CONTRAST_LEVEL (   level)    LCDCCR=(0x0F & level)

Definition at line 45 of file LCD_driver.h.

Referenced by LCD_Init().

#define LCD_FLASH_SEED   10

Definition at line 27 of file LCD_driver.h.

Referenced by SIGNAL().

#define LCD_INITIAL_CONTRAST   0x0F

Definition at line 25 of file LCD_driver.h.

Referenced by LCD_Init().

#define LCD_REGISTER_COUNT   20

Definition at line 28 of file LCD_driver.h.

Referenced by LCD_AllSegments(), and SIGNAL().

#define LCD_SET_COLON (   active)    LCD_Data[8] = active

Definition at line 39 of file LCD_driver.h.

#define LCD_TIMER_SEED   3

Definition at line 26 of file LCD_driver.h.

Referenced by SIGNAL().

#define pLCDREG   ((unsigned char *)(0xEC))

Definition at line 42 of file LCD_driver.h.

Referenced by SIGNAL().

#define SCROLLMODE_LOOP   0x02

Definition at line 32 of file LCD_driver.h.

#define SCROLLMODE_ONCE   0x01

Definition at line 31 of file LCD_driver.h.

#define SCROLLMODE_WAVE   0x03

Definition at line 33 of file LCD_driver.h.

#define TEXTBUFFER_SIZE   16

FIXME: overwrites the FatCACHE!! when big(25 or so)

Definition at line 29 of file LCD_driver.h.

Referenced by LCD_Clear(), LCD_putc(), LCD_puts(), and LCD_puts_f().


Function Documentation

void LCD_AllSegments ( char  show)

Definition at line 250 of file LCD_driver.c.

References LCD_Data, and LCD_REGISTER_COUNT.

Referenced by LCD_Init().

void LCD_Init ( void  )

Definition at line 150 of file LCD_driver.c.

References FALSE, gLCD_Update_Required, LCD_AllSegments(), LCD_CONTRAST_LEVEL, and LCD_INITIAL_CONTRAST.

Here is the call graph for this function:

void LCD_WriteDigit ( char  input,
char  digit 
)

Definition at line 193 of file LCD_driver.c.

References LCD_Data.

Referenced by SIGNAL().


Variable Documentation

char gColon

Definition at line 71 of file LCD_driver.c.

Referenced by LCD_Colon(), and SIGNAL().

Definition at line 68 of file LCD_driver.c.

Referenced by LCD_FlashReset(), and SIGNAL().

volatile char gLCD_Update_Required

Definition at line 48 of file LCD_driver.c.

Referenced by LCD_Init(), LCD_puts(), LCD_puts_f(), LCD_UpdateRequired(), and SIGNAL().

volatile signed char gScroll

Definition at line 60 of file LCD_driver.c.

Referenced by LCD_puts(), LCD_puts_f(), LCD_UpdateRequired(), and SIGNAL().

volatile char gScrollMode

Definition at line 61 of file LCD_driver.c.

Referenced by LCD_puts(), LCD_puts_f(), LCD_UpdateRequired(), and SIGNAL().

Definition at line 74 of file LCD_driver.c.

Referenced by LCD_puts(), LCD_puts_f(), and SIGNAL().

char gTextBuffer[16]

Definition at line 55 of file LCD_driver.c.

Referenced by LCD_Clear(), LCD_putc(), LCD_puts(), LCD_puts_f(), and SIGNAL().

char LCD_Data[20]

Definition at line 51 of file LCD_driver.c.

Referenced by LCD_AllSegments(), LCD_WriteDigit(), and SIGNAL().

 All Files Functions Variables Typedefs Enumerations Enumerator Defines