Andrew Reed
/
CITY1082-TFT-basic
Basic TFT display program for CITY082
Embed:
(wiki syntax)
Show/hide line numbers
cy8ckit_028_tft.h
00001 /***************************************************************************//** 00002 * \file DisplayInterface.h 00003 * \version 1.0 00004 * 00005 * \brief 00006 * Objective: 00007 * This is display software i8080 interface header file. 00008 * 00009 ******************************************************************************** 00010 * \copyright 00011 * Copyright 2018-2019 Cypress Semiconductor Corporation 00012 * SPDX-License-Identifier: Apache-2.0 00013 * 00014 * Licensed under the Apache License, Version 2.0 (the "License"); 00015 * you may not use this file except in compliance with the License. 00016 * You may obtain a copy of the License at 00017 * 00018 * http://www.apache.org/licenses/LICENSE-2.0 00019 * 00020 * Unless required by applicable law or agreed to in writing, software 00021 * distributed under the License is distributed on an "AS IS" BASIS, 00022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00023 * See the License for the specific language governing permissions and 00024 * limitations under the License. 00025 *******************************************************************************/ 00026 /*#include "mbed.h" 00027 #ifndef LCD_REG0 00028 DigitalInOut LCD_REG0(P9_0); 00029 DigitalInOut LCD_REG1(P9_1); 00030 DigitalInOut LCD_REG2(P9_2); 00031 DigitalInOut LCD_REG3(P9_4); 00032 DigitalInOut LCD_REG4(P9_5); 00033 DigitalInOut LCD_REG5(P0_2); 00034 DigitalInOut LCD_REG6(P13_0); 00035 DigitalInOut LCD_REG7(P13_1); 00036 00037 DigitalOut LCD_NWR(P12_0); 00038 DigitalOut LCD_DC(P12_1); 00039 DigitalOut LCD_RESET(P12_2); 00040 DigitalOut LCD_NRD(P12_3); 00041 #endif 00042 */ 00043 #include <DigitalInOut.h> 00044 #include <DigitalOut.h> 00045 00046 extern mbed::DigitalInOut LCD_REG0; 00047 extern mbed::DigitalInOut LCD_REG1; 00048 extern mbed::DigitalInOut LCD_REG2; 00049 extern mbed::DigitalInOut LCD_REG3; 00050 extern mbed::DigitalInOut LCD_REG4; 00051 extern mbed::DigitalInOut LCD_REG5; 00052 extern mbed::DigitalInOut LCD_REG6; 00053 extern mbed::DigitalInOut LCD_REG7; 00054 00055 00056 extern mbed::DigitalOut LCD_NWR; 00057 extern mbed::DigitalOut LCD_DC; 00058 extern mbed::DigitalOut LCD_RESET; 00059 extern mbed::DigitalOut LCD_NRD; 00060 00061 #ifndef DISPLAYINTERFACE_H 00062 #define DISPLAYINTERFACE_H 00063 00064 00065 #include "GUI_Type.h" 00066 //#include "cycfg_pins.h" 00067 /* "LCD_DATA_0": "P9_0", 00068 "LCD_DATA_1": "P9_1", 00069 "LCD_DATA_2": "P9_2", 00070 "LCD_DATA_3": "P9_4", 00071 "LCD_DATA_4": "P9_5", 00072 "LCD_DATA_5": "P0_2", 00073 "LCD_DATA_6": "P13_0", 00074 "LCD_DATA_7": "P13_1", 00075 "LCD_NWR": "P12_0", 00076 "LCD_DC": "P12_1", 00077 "LCD_RESET": "P12_2", 00078 "LDC_NRD": "P12_3", 00079 */ 00080 00081 00082 void DisplayIntf_Init(void); 00083 void DisplayIntf_Write8_A0(U8 data); 00084 void DisplayIntf_Write8_A1(U8 data); 00085 void DisplayIntf_WriteM8_A1(U8 data[], int num); 00086 U8 DisplayIntf_Read8_A1(void); 00087 void DisplayIntf_ReadM8_A1(U8 data[], int num); 00088 00089 #endif 00090 00091 /* [] END OF FILE */ 00092 00093
Generated on Thu Jul 21 2022 14:00:33 by 1.7.2