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.
EA_QVGALCD.h
00001 /* mbed Embedded Artists QVGA LCD Display Library 00002 * Copyright (c) 2007-2009 sford 00003 * Released under the MIT License: http://mbed.org/license/mit 00004 * 00005 * Implements a QVGA LCD display from Embedded Artisits 00006 */ 00007 00008 #ifndef MBED_EA_QVGALCD_H 00009 #define MBED_EA_QVGALCD_H 00010 00011 #include "GraphicsDisplay.h" 00012 00013 class EA_QVGALCD : public GraphicsDisplay { 00014 00015 public: 00016 00017 EA_QVGALCD(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rst); 00018 00019 virtual void pixel(int x, int y, int colour); 00020 virtual int width(); 00021 virtual int height(); 00022 virtual void window(int x, int y, int w, int h); 00023 virtual void putp(int colour); 00024 00025 protected: 00026 00027 void command(int value); 00028 void data(int value); 00029 void config(int index, int value); 00030 00031 SPI _spi; 00032 DigitalOut _cs; 00033 DigitalOut _rst; 00034 00035 }; 00036 00037 #endif
Generated on Sat Jul 16 2022 07:20:35 by
1.7.2