ButterflyMP3
|
Template for LCD MP3 Functions. More...
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include "types.h"
#include "lcdgraphics.h"
Go to the source code of this file.
Functions | |
void | LCD_Initialize (void) |
Initialize hardware. | |
void | LCD_Blank (void) |
clear LCD | |
void | LCD_Sleep (void) |
Put LCD into powersave mode. | |
void | LCD_Wake (void) |
Wake LCD from powersave mode. | |
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_Scanning (void) |
Print Sanning message while searching MMC. | |
void | LCD_Battery (uint8 percentage) |
Print Battery Status on LCD. |
Template for LCD MP3 Functions.
This file is a dummy template for implementing a display on the mp3 player. It is included when no other display is chosen during compile time. You can use this as a basis for future dislpays such as serial or other LCD systems.
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.c.
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 | ) |
Print long filename on display.
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 | ) |
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.
Data | 8bit int to print, upper nibble is ignored |
Definition at line 93 of file lcdgraphics.c.
void LCD_PrintfU8 | ( | uint8 | Data | ) |
Print two 4bit Digits.
Data | 8bit 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.
Definition at line 186 of file lcdgraphics.c.
Referenced by update_LCD().
Print Play time on display.
data[] | 16bit integer array containting play time information. |
Definition at line 132 of file lcdgraphics.c.
Referenced by update_LCD().
Show the volume.
uint8 | containing 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().