有谁在MT6260上搞过ST7735S的串口小屏
我这边调试白屏啊!
建议直接用GPIO写串口 不用系统的
我是用的GPIO直接写串口的
GPIO设的对吗?
1.8v Serial LCM Interface
#define LCD_ST7789S_SERIAL
#define SET_LCD_INFO_SERIAL
#define Check_ID_Test
#if (defined(MT6260)||defined(MT6250))
#define COMBO_LCM_ID_AUTO_DETECT
#endif
//#define LCD_CMD_DMA_MODE
#if (defined(MT6256)||defined(MT6255)||defined(MT6250)||defined(MT6260))
#undef LCD_CMD_DMA_MODE
#endif
#define LCD_DUMMYADDR 0x90000000
#define ATA_LCM_TEST_BY_READ_GRAM
/*============================LCD_SERIAL =============================*/
#if (defined(SET_LCD_INFO_SERIAL))
#define __SERIAL_LCM__
#define MAIN_LCD_CMD_ADDR LCD_SERIAL0_A0_LOW_ADDR
#define MAIN_LCD_DATA_ADDR LCD_SERIAL0_A0_HIGH_ADDR
//++++++++++++++++++++LCD_ST7789S_SERIAL++++++++++++++++++++++++++
#ifdef LCD_ST7789S_SERIAL
#define SERIAL_LCM_2_DATA_LINE_PROTOCOL
#define SERIAL_LCM_3WIRE_2_DATA_LANE
#if defined(SERIAL_LCM_2_DATA_LINE_PROTOCOL)
#define MAIN_LCD_OUTPUT_FORMAT LCM_18BIT_18_BPP_RGB666_1
#define MAIN_LCD_18BIT_MODE
#else
#define MAIN_LCD_OUTPUT_FORMAT LCM_8BIT_16_BPP_RGB565_1
#define MAIN_LCD_8BIT_MODE
#endif
//*****************************************************************************
typedef struct
{
kal_bool (* Check_LCM_ID)(void);
void (* init_lcd_interface)(void);
void (* LCD_FunConfig)(void);
} LCM_DRIVER;
extern kal_uint32 MAIN_LCM_MAX_NUM ;
/*****************************************************************************/
#ifdef DUAL_LCD
// define sub supported combo lcm ID
typedef enum
{
SUB_EXAMPLE_LCM_A = 0,
SUB_EXAMPLE_LCM_B = 1,
SUB_EXAMPLE_LCM_C = 2,
SUB_LCM_MAX_NUM //please add sub lcd ID above this item, this "SUB_LCM_MAX_NUM" will be used as the number of LCMs.
} sub_lcm_enum; //notice, the enum value should not be conflict with main lcd enum.
#endif
#ifdef COMBO_LCM_ID_AUTO_DETECT
kal_uint32 LCM_ID_Get(void);
#endif
kal_uint32 ranesis_delay;
#define LCD_CtrlWrite_ST7789S(_data) \
{\
*((volatile kal_uint8 *)MAIN_LCD_CMD_ADDR) = (_data&0x00FF);\
for(ranesis_delay = 20; ranesis_delay > 0; ranesis_delay--);\
}\
#define LCD_DataWrite_ST7789S(_data) \
{\
*((volatile kal_uint8 *)MAIN_LCD_DATA_ADDR) = (_data&0x00FF);\
for(ranesis_delay = 20; ranesis_delay > 0; ranesis_delay--);\
}
#define LCD_DataRead_ST7789S (*(volatile kal_uint8 *)MAIN_LCD_DATA_ADDR);
你的串口是 9bit 还是8bit?
这个你要先确认一下
数据线是3线的还是 4线的,麻烦描述清楚一点
最好你的串口屏的那块电路图贴出来一下
我点过,ST7735S和ST7789S都点过。
并且6260我们做过two date lane的串口,用的IC是ST7789S,其他IC不行
thanks for share
用I/O口就可以
能把你的驱动代码发给我吗?
要点人家的回复下面的回复,人家才知道你要,不然,要特意来翻这个帖子才知道
能把你的代码分享给我吗?我现在点st7735s点不亮
你的7735S电亮了吗? 我在61上调试部分显示正常,部分花瓶
上面有代码啊,可以用的是