/*****************************************************/ /* NHD-12864WX-T.c Program for writing to Newhaven Display graphic TAB (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" /*****************************************************/ sbit CS1 = P3^0; //Chip select sbit CS2 = P3^7; //Chip select sbit A0 = P3^1; //Data/Instruction Register select sbit WR1 = P3^6; //Write sbit RD1 = P3^2; //Read sbit C86 = P3^5; //MPU Select I80 sbit RES = P3^4; //Reset sbit PS1 = P3^3; //Chip select /*****************************************************/ void delay(unsigned int n) //Delay subroutine { unsigned int i,j; for (i=0;i