Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PE_08-08_MobileLCD
MobileLCD.h
00001 /* mbed Library - MobileLCD - test for MOD-NOKIA6610 (Epson 15G00) 00002 * Copyright (c) 2007/8, sford 00003 */ 00004 00005 #ifndef MBED_MOBILELCD_H 00006 #define MBED_MOBILELCD_H 00007 00008 #include "mbed.h" 00009 00010 class MobileLCD : public Stream { 00011 00012 public: 00013 00014 MobileLCD(PinName mosi, PinName miso, PinName clk, PinName cs, PinName rst); 00015 00016 void foreground(int v); 00017 void background(int v); 00018 void locate(int column, int row); 00019 virtual void reset(); 00020 void fill(int x, int y, int width, int height, int colour); 00021 void cls(); 00022 int width(); 00023 int height(); 00024 int columns(); 00025 int rows(); 00026 void pixel(int x, int y, int colour); 00027 00028 protected: 00029 00030 virtual void _select(); 00031 virtual void _deselect(); 00032 virtual void _window(int x, int y, int width, int height); 00033 void command(int value); 00034 void data(int value); 00035 void newline(); 00036 virtual int _putc(int c); 00037 virtual int _getc() { return 0; } 00038 SPI _spi; 00039 DigitalOut _rst; 00040 DigitalOut _cs; 00041 void bitblit(int x, int y, int width, int height, const char* bitstream); 00042 void blit(int x, int y, int width, int height, const int* colour); 00043 void putp(int v); 00044 void window(int x, int y, int width, int height); 00045 // void pixel(int x, int y, int colour); 00046 int _row, _column, _rows, _columns, _foreground, _background, _width, _height; 00047 }; 00048 00049 00050 00051 #endif 00052 00053
Generated on Thu Jul 14 2022 01:11:41 by
1.7.2