ButterflyMP3
|
PCD8544 Driver. More...
Go to the source code of this file.
Defines | |
#define | lcdPort PORTC |
#define | lcdPortD DDRC |
#define | SCLK PC3 |
#define | SDIN PC5 |
#define | DC PC2 |
#define | SCE_ PC1 |
#define | RES_ PC4 |
#define | lcdInvert1 lcdModeCmd;lcdByte(0x0d) |
#define | lcdInvert0 lcdModeCmd;lcdByte(0x0c) |
#define | lcdModeCmd lcdPort &= (unsigned char)~_BV(DC) |
#define | lcdModeData lcdPort |= (unsigned char)_BV(DC) |
#define | lcdResume lcdPort &= (unsigned char)~_BV(SCE_) |
#define | lcdSuspend lcdPort |= (unsigned char)_BV(SCE_) |
#define | lcdReset lcdPort &= (unsigned char)~_BV(RES_);lcdPort |= (unsigned char) _BV(RES_) |
#define | fbCols 84 |
#define | fbRows 2 |
Functions | |
void | lcdByte (uint8 data) |
void | lcdDot (uint8 x, uint8 yLine, uint8 color) |
void | lcdCh (uint8 *fontSet, uint8 ch) |
void | lcdWrite (uint8 *fontSet, uint8 *buf, uint8 is_pstr, uint8 len) |
void | fbClr (void) |
void | lcdClr (void) |
void | lcdClrLine (uint8 lineNo) |
void | lcdInit (void) |
void | lcdXY (uint8 x, uint8 y) |
Variables | |
uint8 | fbXY [2] |
PCD8544 Driver.
AVR-GCC Driver for the PCD8544 LCD Controller
Revised : 2004 / 02 / 05 Version : 0.7 Target MCU : Atmel AVRs w/1k+ RAM
Modified : September 2004 by Nick Lott for AVR Butterfly.
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.
AVR-GCC Driver for the PCD8544 LCD Controller
Revised : 2004 / 02 / 05 Version : 0.7 Target MCU : Atmel AVRs w/1k+ RAM
Modified : September 2004 by Nick Lott for AVR Butterfly.
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 pcd8544.h.
#define lcdModeCmd lcdPort &= (unsigned char)~_BV(DC) |
#define lcdModeData lcdPort |= (unsigned char)_BV(DC) |
Definition at line 83 of file pcd8544.h.
Referenced by lcdCh(), lcdClr(), and lcdClrLine().
#define lcdPort PORTC |
#define lcdReset lcdPort &= (unsigned char)~_BV(RES_);lcdPort |= (unsigned char) _BV(RES_) |
#define lcdResume lcdPort &= (unsigned char)~_BV(SCE_) |
#define lcdSuspend lcdPort |= (unsigned char)_BV(SCE_) |
void fbClr | ( | void | ) |
void lcdByte | ( | uint8 | data | ) |
Definition at line 52 of file pcd8544.c.
References lcdPort, lcdResume, lcdSuspend, SCLK, and SDIN.
Referenced by lcdCh(), lcdClr(), lcdClrLine(), lcdInit(), lcdWrite(), and lcdXY().
Definition at line 109 of file pcd8544.c.
References fbXY, lcdByte(), and lcdModeData.
Referenced by lcdWrite().
void lcdClr | ( | void | ) |
void lcdClrLine | ( | uint8 | lineNo | ) |
Definition at line 242 of file pcd8544.c.
References lcdByte(), lcdModeData, and lcdXY().
void lcdInit | ( | void | ) |
Definition at line 292 of file pcd8544.c.
References lcdByte(), and lcdModeCmd.
Referenced by lcdClrLine(), and lcdWrite().