/*****************************************************/ /* NHD-12232AZ.c Program for writing to Newhaven Display 122x32 AZ series Graphic LCD (c)2008 Curt Lagerstam - Newhaven Display International, LLC. 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. */ /*****************************************************/ #include #include "pic.h" sbit D_I = P3^6; sbit R_W = P3^1; sbit E1 = P3^7; sbit E2 = P3^4; sbit RST = P3^0; void delay(unsigned int n); void init(); void Comleft(char i); void Comright(char i); void Writeright(char i); void Writeleft(char i); void graphic(unsigned char *img); void bothSides(char i); /*****************************************/ void delay(unsigned int n) { unsigned int i,j; for (i=0;i