基于ATmega64的MP3程序
源代码在线查看: 3310._h
//ICC-AVR application builder : 2005-11-12 17:11:59
// Target : M16
// Crystal: 8.0000Mhz
// copyright:鲁军波(endylu)
#ifndef NOKIA3310_H
#define NOKIA3310_H
#define LCD_DC 0x80 //PA7
#define LCD_CS 0x40 //PA6
#define LCD_RST 0x20 //PA5
#define SPI_MOSI 0x20 //PB5
#define SPI_CLK 0x80 //PB7
#define LCD_ddr DDRA
#define LCD_port PORTA
void LCD_init(void);
void LCD_clear(void);
void LCD_write_String(uint8 X,uint8 Y,uint8 l,uint8 *s,uint8 N);
void LCD_write_char(uint8 c,uint8 N);
void LCD_write_byte(uint8 data, uint8 command);
void LCD_set_XY(uint8 X, uint8 Y);
void LCD_write_tubiao(uint8 X, uint8 Y, uint8 line);
void JINGDU(void);
void GEPAI(void);
#endif