12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * pcd8544_lcd.h
- *
- * Copyright 2022 dh33ex <dh33ex@riseup.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 3 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., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA or see <http://www.gnu.org/licenses/>.
- *
- *
- */
- #ifndef PCD8544_LCD_H
- #define PCD8544_LCD_H
- struct pcd8544 {
- unsigned char rst;
- unsigned char ss;
- unsigned char dc;
- unsigned char bl;
- };
- typedef struct pcd8544 PCD8544;
- void LCD_init(PCD8544 *disp);
- void LCD_write(PCD8544 *disp, char *string);
- void LCD_backlight(PCD8544 *disp, unsigned char state);
- void LCD_set_address(PCD8544 *disp, unsigned char x, unsigned char y);
- void LCD_clear(PCD8544 *disp);
- #endif
|