Updated for more display types. Fixed memoryaddress confusion in address() method. Added new getAddress() method. Added support for UDCs, Backlight control and other features such as control through I2C and SPI port expanders and controllers with native I2C and SPI interfaces. Refactored to fix issue with pins that are default declared as NC.
Dependents: GPSDevice TestTextLCD SD to Flash Data Transfer DrumMachine ... more
Fork of TextLCD by
TextLCD_UDC.h
00001 /* mbed TextLCD Library, for LCDs based on HD44780 controllers 00002 * Copyright (c) 2014, WH 00003 * 2014, v01: WH, Extracted from TextLCD.h as of v14 00004 * 2015, v02: WH, Added some UDC definitions and commented out several UDCs 00005 * 2015, v03: WH, Added some UDC definitions 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a copy 00008 * of this software and associated documentation files (the "Software"), to deal 00009 * in the Software without restriction, including without limitation the rights 00010 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00011 * copies of the Software, and to permit persons to whom the Software is 00012 * furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included in 00015 * all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00018 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00020 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00021 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00022 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00023 * THE SOFTWARE. 00024 */ 00025 #ifndef MBED_TEXTLCDUDC_H 00026 #define MBED_TEXTLCDUDC_H 00027 00028 #include "TextLCD_Config.h" 00029 00030 /** Some sample User Defined Chars 5x7 dots */ 00031 #if(LCD_UDC == 1) 00032 //extern const char udc_ae[]; //æ 00033 //extern const char udc_0e[]; //ø 00034 //extern const char udc_ao[]; //å 00035 //extern const char udc_AE[]; //Æ 00036 //extern const char udc_0E[]; //Ø 00037 //extern const char udc_Ao[]; //Å 00038 //extern const char udc_PO[]; //Padlock Open 00039 //extern const char udc_PC[]; //Padlock Closed 00040 00041 //extern const char udc_alpha[]; //alpha 00042 //extern const char udc_ohm[]; //ohm 00043 //extern const char udc_sigma[]; //sigma 00044 //extern const char udc_pi[]; //pi 00045 //extern const char udc_root[]; //root 00046 00047 extern const char udc_0[]; // |> 00048 extern const char udc_1[]; // <| 00049 extern const char udc_2[]; // | 00050 extern const char udc_3[]; // || 00051 extern const char udc_4[]; // ||| 00052 extern const char udc_5[]; // = 00053 extern const char udc_6[]; // checkerboard 00054 extern const char udc_7[]; // \ 00055 00056 //extern const char udc_degr[]; // Degree symbol 00057 00058 //extern const char udc_TM_T[]; // Trademark T 00059 //extern const char udc_TM_M[]; // Trademark M 00060 00061 //extern const char udc_Bat_Hi[]; // Battery Full 00062 //extern const char udc_Bat_Ha[]; // Battery Half 00063 //extern const char udc_Bat_Lo[]; // Battery Low 00064 extern const char udc_Bat_Hi[]; // Battery Full 00065 extern const char udc_Bat_Ha[]; // Battery Half 00066 extern const char udc_Bat_Lo[]; // Battery Low 00067 extern const char udc_AC[]; // AC Power 00068 00069 extern const char udc_smiley[]; // Smiley 00070 //extern const char udc_droopy[]; // Droopey 00071 //extern const char udc_note[]; // Note 00072 //extern const char udc_note_off[]; // Note Off 00073 00074 //extern const char udc_bar_1[]; // Bar 1 00075 //extern const char udc_bar_2[]; // Bar 11 00076 //extern const char udc_bar_3[]; // Bar 111 00077 //extern const char udc_bar_4[]; // Bar 1111 00078 //extern const char udc_bar_5[]; // Bar 11111 00079 00080 //extern const char udc_ch_1[]; // Hor bars 4 00081 //extern const char udc_ch_2[]; // Hor bars 4 (inverted) 00082 //extern const char udc_ch_3[]; // Ver bars 3 00083 //extern const char udc_ch_4[]; // Ver bars 3 (inverted) 00084 //extern const char udc_ch_yr[]; // Year (kana) 00085 //extern const char udc_ch_mo[]; // Month (kana) 00086 //extern const char udc_ch_dy[]; // Day (kana) 00087 //extern const char udc_ch_mi[]; // minute (kana) 00088 00089 //extern const char udc_bell[]; 00090 //extern const char udc_note[]; 00091 //extern const char udc_clock[]; 00092 //extern const char udc_heart[]; 00093 //extern const char udc_duck[]; 00094 //extern const char udc_check[]; 00095 //extern const char udc_cross[]; 00096 //extern const char udc_retarrow[]; 00097 //extern const char udc_OK[]; // Ok 00098 //extern const char udc_1_2[]; // 1/2 00099 //extern const char udc_Euro[]; // Euro symbol 00100 //extern const char udc_key[]; // Key symbol 00101 00102 //extern const char udc_None[]; 00103 //extern const char udc_All[]; 00104 #endif /* LCD_UDC Examples */ 00105 00106 #endif // MBED_TEXTLCDUDC_H
Generated on Tue Jul 12 2022 12:52:56 by 1.7.2