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.
MobileLCD.h
00001 /* mbed Library - MobileLCD 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 namespace mbed { 00011 00012 class MobileLCD : public Stream { 00013 00014 public: 00015 00016 MobileLCD(int mosi, int miso, int clk, int cs, int rst); 00017 00018 virtual void reset(); 00019 virtual void _select(); 00020 virtual void _deselect(); 00021 virtual void _window(int x, int y, int width, int height); 00022 virtual void _putp(int colour); 00023 virtual void orientation(); 00024 00025 void command(int value); 00026 void data(int value); 00027 void foreground(int v); 00028 void background(int v); 00029 void locate(int column, int row); 00030 void newline(); 00031 virtual int _putc(int c); 00032 virtual int _getc() { return 0; } 00033 SPI _spi; 00034 DigitalOut _rst; 00035 DigitalOut _cs; 00036 void bitblit(int x, int y, int width, int height, const char* bitstream); 00037 void fill(int x, int y, int width, int height, int colour); 00038 void blit(int x, int y, int width, int height, const int* colour); 00039 void cls(); 00040 int width(); 00041 int height(); 00042 int columns(); 00043 int rows(); 00044 void putp(int v); 00045 void window(int x, int y, int width, int height); 00046 void pixel(int x, int y, int colour); 00047 int _row, _column, _rows, _columns, _foreground, _background, _width, _height; 00048 }; 00049 00050 } 00051 00052 #endif 00053 00054
Generated on Tue Jul 12 2022 18:38:22 by
1.7.2