For Nokia Mobile LCD

Dependents:   PE_08-08_MobileLCD

Committer:
robt
Date:
Fri Sep 28 15:06:16 2012 +0000
Revision:
0:39daa30e0eb3
[mbed] converted /mbed_08c_MobileLCD/MobileLCD

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robt 0:39daa30e0eb3 1 /* mbed Library - MobileLCD - test for MOD-NOKIA6610 (Epson 15G00)
robt 0:39daa30e0eb3 2 * Copyright (c) 2007/8, sford
robt 0:39daa30e0eb3 3 */
robt 0:39daa30e0eb3 4
robt 0:39daa30e0eb3 5 #ifndef MBED_MOBILELCD_H
robt 0:39daa30e0eb3 6 #define MBED_MOBILELCD_H
robt 0:39daa30e0eb3 7
robt 0:39daa30e0eb3 8 #include "mbed.h"
robt 0:39daa30e0eb3 9
robt 0:39daa30e0eb3 10 class MobileLCD : public Stream {
robt 0:39daa30e0eb3 11
robt 0:39daa30e0eb3 12 public:
robt 0:39daa30e0eb3 13
robt 0:39daa30e0eb3 14 MobileLCD(PinName mosi, PinName miso, PinName clk, PinName cs, PinName rst);
robt 0:39daa30e0eb3 15
robt 0:39daa30e0eb3 16 void foreground(int v);
robt 0:39daa30e0eb3 17 void background(int v);
robt 0:39daa30e0eb3 18 void locate(int column, int row);
robt 0:39daa30e0eb3 19 virtual void reset();
robt 0:39daa30e0eb3 20 void fill(int x, int y, int width, int height, int colour);
robt 0:39daa30e0eb3 21 void cls();
robt 0:39daa30e0eb3 22 int width();
robt 0:39daa30e0eb3 23 int height();
robt 0:39daa30e0eb3 24 int columns();
robt 0:39daa30e0eb3 25 int rows();
robt 0:39daa30e0eb3 26 void pixel(int x, int y, int colour);
robt 0:39daa30e0eb3 27
robt 0:39daa30e0eb3 28 protected:
robt 0:39daa30e0eb3 29
robt 0:39daa30e0eb3 30 virtual void _select();
robt 0:39daa30e0eb3 31 virtual void _deselect();
robt 0:39daa30e0eb3 32 virtual void _window(int x, int y, int width, int height);
robt 0:39daa30e0eb3 33 void command(int value);
robt 0:39daa30e0eb3 34 void data(int value);
robt 0:39daa30e0eb3 35 void newline();
robt 0:39daa30e0eb3 36 virtual int _putc(int c);
robt 0:39daa30e0eb3 37 virtual int _getc() { return 0; }
robt 0:39daa30e0eb3 38 SPI _spi;
robt 0:39daa30e0eb3 39 DigitalOut _rst;
robt 0:39daa30e0eb3 40 DigitalOut _cs;
robt 0:39daa30e0eb3 41 void bitblit(int x, int y, int width, int height, const char* bitstream);
robt 0:39daa30e0eb3 42 void blit(int x, int y, int width, int height, const int* colour);
robt 0:39daa30e0eb3 43 void putp(int v);
robt 0:39daa30e0eb3 44 void window(int x, int y, int width, int height);
robt 0:39daa30e0eb3 45 // void pixel(int x, int y, int colour);
robt 0:39daa30e0eb3 46 int _row, _column, _rows, _columns, _foreground, _background, _width, _height;
robt 0:39daa30e0eb3 47 };
robt 0:39daa30e0eb3 48
robt 0:39daa30e0eb3 49
robt 0:39daa30e0eb3 50
robt 0:39daa30e0eb3 51 #endif
robt 0:39daa30e0eb3 52
robt 0:39daa30e0eb3 53