The size is only the size of a U disk. Onboard resources: 1.14 IPS TFT+TF card+MIC+Audio (DAC implementation, onboard power amplifier)+RGB LED+2*key+NorFlash+USB+CH340. Unfortunately, the onboard MCU The memory cannot be transplanted to LVGL, but it is sufficient as a verification LCD board and can also be used as a small portable toy (the playability is improved after Lua is transplanted). A COCOPI project will be open sourced in the future. This project uses the Cortex-A7 core and the chip uses the Allwinner V3s solution. It is also a very mini board with a 1.14-inch LCD onboard.
Here is a simple attachment of the 1.14-inch IPS TFT initialization code:
void TFT_init(void)
{
TFT_GPIOinit();
LCD_BL_H;
LCD_RST_L;
Delay(20);
LCD_RST_H;
LCD_Write_COM(0x11);//Sleep exit
Delay(12);
LCD_Write_COM(0x11);
Delay(10);
LCD_Write_COM(0x3A); //65k mode
LCD_Write_DATA(0x05);
LCD_Write_COM(0xC5); //VCOM
LCD_Write_DATA(0x1A);
LCD_Write_COM(0x36); // 屏幕显示方向设置
LCD_Write_DATA(0x70); //改变该值可以旋转方向 0x00 0x70 0xa0 0xc0
//-------------ST7789V Frame rate setting-----------//
LCD_Write_COM(0xb2);
LCD_Write_DATA(0x05);
LCD_Write_DATA(0x05);
LCD_Write_DATA(0x00);
LCD_Write_DATA(0x33);
LCD_Write_DATA(0x33);
LCD_Write_COM(0xb7);
LCD_Write_DATA(0x35);
//--------------ST7789V Power setting---------------//
LCD_Write_COM(0xBB);//VCOM
LCD_Write_DATA(0x3F);
LCD_Write_COM(0xC0); //Power control
LCD_Write_DATA(0x2c);
LCD_Write_COM(0xC2);
LCD_Write_DATA(0x01);
LCD_Write_COM(0xC3);
LCD_Write_DATA(0x0F);//0D gvdd
LCD_Write_COM(0xC4);
LCD_Write_DATA(0x20);
LCD_Write_COM(0xC6);
LCD_Write_DATA(0X11);//0x0F
LCD_Write_COM(0xd0);
LCD_Write_DATA(0xa4);
LCD_Write_DATA(0xa1);
LCD_Write_COM(0xE8);
LCD_Write_DATA(0x03);
LCD_Write_COM(0xE9);
LCD_Write_DATA(0x09);
LCD_Write_DATA(0x09);
LCD_Write_DATA(0x08);
//---------------ST7789V gamma setting-------------//
LCD_Write_COM(0xE0); //Set Gamma
LCD_Write_DATA(0xD0);
LCD_Write_DATA(0x05);
LCD_Write_DATA(0x09);
LCD_Write_DATA(0x09);
LCD_Write_DATA(0x08);
LCD_Write_DATA(0x14);
LCD_Write_DATA(0x28);
LCD_Write_DATA(0x33);
LCD_Write_DATA(0x3F);
LCD_Write_DATA(0x07);
LCD_Write_DATA(0x13);
LCD_Write_DATA(0x14);
LCD_Write_DATA(0x28);
LCD_Write_DATA(0x30);
LCD_Write_COM(0XE1); //Set Gamma
LCD_Write_DATA(0xD0);
LCD_Write_DATA(0x05);
LCD_Write_DATA(0x09);
LCD_Write_DATA(0x09);
LCD_Write_DATA(0x08);
LCD_Write_DATA(0x03);
LCD_Write_DATA(0x24);
LCD_Write_DATA(0x32);
LCD_Write_DATA(0x32);
LCD_Write_DATA(0x3B);
LCD_Write_DATA(0x14);
LCD_Write_DATA(0x13);
LCD_Write_DATA(0x28);
LCD_Write_DATA(0x2F);
LCD_Write_COM(0x21); //反显
LCD_Write_COM(0x11);
Delay(120); //Delay 120ms
LCD_Write_COM(0x29);
DisplayWindow(0,0,240,135,0x001f); //刷新蓝色
}
Note that there is an offset in the brush function below:
void DisplayWindow(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2,unsigned int color)
{
x1+=40;y1+=53;
x2+=40;y2+=53;
LCD_Write_COM(0x2a);
LCD_Write_DATA(x1>>8);
LCD_Write_DATA(x1);
unsigned int i,j;
LCD_Write_DATA(x2>>8);
LCD_Write_DATA(x2);
LCD_Write_COM(0x2b);
LCD_Write_DATA(y1>>8);
LCD_Write_DATA(y1);
LCD_Write_DATA(y2>>8);
LCD_Write_DATA(y2);
LCD_Write_COM(0x2c);
for(j=y1;j<=y2;j++)c
for(i=x1;i<=x2;i++)
{
LCD_Write_DATA(color>>8);v
LCD_Write_DATA(color);
}
}
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet