Newhaven 320x240 LCD

Dependencies:   mbed

newhaven.h

Committer:
pbevans89
Date:
2011-02-27
Revision:
0:c8893901ef8a
Child:
1:fa44aeffcfd6

File content as of revision 0:c8893901ef8a:

#include "mbed.h"

class NHLCD {
    public:
        NHLCD(PinName PIN_E,PinName PIN_RW,PinName PIN_A0,PinName PIN_CS,PinName PIN_RST, BusInOut *BUSLCD);
        void Init();
        void comm_out(unsigned char j);
        void data_out(unsigned char j);
        void clearScreen();
        void text(char* text, char row, char col);
        void setPixel(int row, int col);
        
    private:
        DigitalOut E,RW,A0,CS,RST;   
        BusInOut *LCD_PORT;   
        
};

void delay(unsigned int n);
void delay1(unsigned int n);