Basic library for SHARP LCD LS027B4DH01/LS027B7DH01
Dependents: AkiSpiLcd_demo AkiSpiLcd_demo2 LCDRAM AkiSpiLcd_example
MemoryLcd.h
00001 /* Copyright (c) 2016 Kazuki Yamamoto <k.yamamoto.08136891@gmail.com> 00002 Permission is hereby granted, free of charge, to any person obtaining 00003 a copy of this software and associated documentation files 00004 (the "Software"), to deal in the Software without restriction, 00005 including without limitation the rights to use, copy, modify, merge, 00006 publish, distribute, sublicense, and/or sell copies of the Software, 00007 and to permit persons to whom the Software is furnished to do so, 00008 subject to the following conditions: 00009 The above copyright notice and this permission notice shall be 00010 included in all copies or substantial portions of the Software. 00011 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00012 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00013 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00014 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 00015 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00016 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00017 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00018 */ 00019 /** this is base class for Memory LCDs from SHARP or JDI 00020 * by Kazuki Yamamoto, or _K4ZUKI_ 00021 */ 00022 00023 #ifndef __MEMORYLCD_H__ // NOLINT 00024 #define __MEMORYLCD_H__ 00025 00026 #include "mbed.h" // NOLINT 00027 00028 class LCD_MODE { 00029 public: 00030 static const uint8_t COM_INVERT = 0; 00031 static const uint8_t CLEAR_SCREEN = 0; 00032 static const uint8_t UPDATE = 0; 00033 }; 00034 00035 // class MemoryLCD { 00036 // public: 00037 // // enum LCD_MODE { COM_INVERT, CLEAR_SCREEN, UPDATE }; 00038 // 00039 // /** Constructor 00040 // * @param mosi SPI data output from mbed 00041 // * @param mosi SPI data input from slave 00042 // * @param sck SPI clock output from mbed 00043 // * @param csl chip select input for LCD 00044 // */ 00045 // MemoryLCD(PinName mosi, PinName miso, PinName sck, PinName csl); 00046 // 00047 // /** Clear screen 00048 // */ 00049 // void cls(); 00050 // 00051 // /** Writes single line(400 bits = 50 bytes) 00052 // * @param line line number 00053 // * @param *data pointer to data 00054 // */ 00055 // void directUpdateSingle(int line, uint8_t *data); 00056 // 00057 // /** Writes multi lines 00058 // * @param line line number 00059 // * @param length number of line to write 00060 // * @param *data pointer to data 00061 // */ 00062 // void directUpdateMulti(int startline, int length, uint8_t *data); 00063 // 00064 // /** Inverting internal COM signal 00065 // */ 00066 // void cominvert(); 00067 // 00068 // private: 00069 // int _comflag; 00070 // SPI _spi; 00071 // DigitalOut _csl; 00072 // }; 00073 #endif // __MEMORYLCD_H__ //NOLINT
Generated on Thu Jul 14 2022 22:22:59 by 1.7.2