ButterflyMP3

lcdgraphics.h File Reference

LCD MP3 Functions. More...

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

Go to the source code of this file.

Defines

#define SONG_TITLE_WIDTH   20
#define SONG_TITLE_PAUSE   4

Functions

void LCD_Initialize (void)
 Initialize hardware.
void LCD_Blank (void)
 clear LCD
void LCD_PrintfU4 (uint8 Data)
 Print a single 4bit digit.
void LCD_PrintfU8 (uint8 Data)
 Print two 4bit Digits.
uint8 LCD_Time (uint16 data)
 Print Play time on display.
uint8 LCD_FileName (uint8 resetScroll)
 Print long filename on display.
void LCD_Play (void)
 Display the "playing" symbol.
void LCD_Stop (void)
 Display the "stopped" symbol.
void LCD_Pause (void)
 Display the "Paused" symbol.
void LCD_Vol (uint8 volume, uint8 boostOn)
 Show the volume.
uint8 LCD_Tester (void)
 Print the startup message to the LCD screen.
void LCD_Sleep (void)
 Put LCD into powersave mode.
void LCD_Wake (void)
 Wake LCD from powersave mode.
void LCD_Scanning (void)
 Print Sanning message while searching MMC.
void LCD_Battery (uint8 percentage)
 Print Battery Status on LCD.

Detailed Description

LCD MP3 Functions.

Author:
Nick Lott
Date:
September 2004
Id:
lcdgraphics.h,v 1.10 2009/01/19 23:36:09 brokentoaster Exp

This file represents a convergence of a number of code snippets found on the web, some of the Yampp system by Jesper Hansen and the work done by Sylvain.Bissonnette@microsyl.com. The goal of this code is to run the graphical LCD for the Butterfly MP3 project. http://butterflymp3.sourceforge.net/

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file lcdgraphics.h.


Define Documentation

#define SONG_TITLE_PAUSE   4

Definition at line 36 of file lcdgraphics.h.

#define SONG_TITLE_WIDTH   20

Definition at line 35 of file lcdgraphics.h.


Function Documentation

void LCD_Battery ( uint8  percentage)

Print Battery Status on LCD.

Definition at line 204 of file lcdgraphics.c.

Referenced by update_LCD().

void LCD_Blank ( void  )

clear LCD

Definition at line 61 of file lcdgraphics.c.

Referenced by update_LCD().

uint8 LCD_FileName ( uint8  resetScroll)

Print long filename on display.

Parameters:
name[]null terminated string containing filename

Definition at line 142 of file lcdgraphics.c.

Referenced by mainTimer(), open_Dir(), and update_LCD().

void LCD_Initialize ( void  )

Initialize hardware.

Set the scanning port as an ouput, disable all columns and setup the timer to scan the columns over time.

Definition at line 52 of file lcdgraphics.c.

References LEDMatrix_timer(), and Timer0_RegisterCallbackFunction().

Referenced by init_HW().

Here is the call graph for this function:

void LCD_Pause ( void  )

Display the "Paused" symbol.

Definition at line 168 of file lcdgraphics.c.

Referenced by update_LCD().

void LCD_Play ( void  )

Display the "playing" symbol.

Definition at line 150 of file lcdgraphics.c.

Referenced by update_LCD().

void LCD_PrintfU4 ( uint8  Data)

Print a single 4bit digit.

Parameters:
Data8bit int to print, upper nibble is ignored

Definition at line 93 of file lcdgraphics.c.

void LCD_PrintfU8 ( uint8  Data)

Print two 4bit Digits.

Parameters:
Data8bit int to print

Definition at line 115 of file lcdgraphics.c.

void LCD_Scanning ( void  )

Print Sanning message while searching MMC.

Definition at line 196 of file lcdgraphics.c.

Referenced by open_Dir().

void LCD_Sleep ( void  )

Put LCD into powersave mode.

Definition at line 70 of file lcdgraphics.c.

Referenced by Power_off().

void LCD_Stop ( void  )

Display the "stopped" symbol.

Definition at line 159 of file lcdgraphics.c.

Referenced by update_LCD().

uint8 LCD_Tester ( void  )

Print the startup message to the LCD screen.

Returns:
uint8 status code (always zero)

Definition at line 186 of file lcdgraphics.c.

Referenced by update_LCD().

uint8 LCD_Time ( uint16  data)

Print Play time on display.

Parameters:
data[]16bit integer array containting play time information.

Definition at line 132 of file lcdgraphics.c.

Referenced by update_LCD().

void LCD_Vol ( uint8  volume,
uint8  boostOn 
)

Show the volume.

Parameters:
uint8containing the volumt lower nibble is used.

Definition at line 177 of file lcdgraphics.c.

Referenced by update_LCD().

void LCD_Wake ( void  )

Wake LCD from powersave mode.

Definition at line 79 of file lcdgraphics.c.

Referenced by Power_off().

 All Files Functions Variables Typedefs Enumerations Enumerator Defines