//--------------------------------------------------------- /* NHD-320240WX-COTFH.c Program for writing to Newhaven Display 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 "picture.h" /**************** I/O Setting **********************/ #define A0 P3_0 #define RW P3_7 #define E P3_4 #define CS P3_1 #define RESET P3_6 /***************************************************/ void delay(unsigned int n) { unsigned int i,j; for (i=0;i