当前位置:网站首页>How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen
How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen
2022-07-25 02:40:00 【An acre of land by the river bend】
Software :Image2LCD Rev3.2 ( Be careful : use 4.0 The version cannot be displayed normally )
link :https://pan.baidu.com/s/10zqHjQCT7HO_MqmKwK_tvQ?pwd=mji3
Extraction code :mji3
Hardware : Huadi Chuangxian 1.54 Inch liquid crystal ST7789 chip
Official code :
/******************************************************************************
Function description : display picture
Entry data :x,y Starting point coordinates
length Image width
width Picture height
pic[] Image array
Return value : nothing
explain :Image2LCD 3.2 Version software generates code 4.0 The version doesn't work
Set up : Scanning mode : Horizontal scanning
Output grayscale :16 A true color
Maximum width and height : Image resolution
High in the former √ tick Nothing else √
******************************************************************************/
void LCD_ShowPicture(uint16_t x,uint16_t y,uint16_t length,uint16_t width,const uint8_t pic[])
{
uint16_t i,j;
uint32_t k=0;
LCD_Address_Set(x,y,x+length-1,y+width-1);
for(i=0;i<length;i++)
{
for(j=0;j<width;j++)
{
LCD_WR_DATA8(pic[k*2]);
LCD_WR_DATA8(pic[k*2+1]);
k++;
}
}
}

Generate code according to this setting , copy to pic.h in , Call it .
边栏推荐
- BMW I3 based on clar architecture is not a simple "oil to electricity" product
- Rotating frame target detection mmrotate v0.3.1 training hrsc2016 data set (II)
- Detailed explanation of the principles and differences between static pages and dynamic pages
- Details of C language compilation preprocessing and comparison of macros and functions
- ICO objects in classification
- HAC cluster is modified to stand-alone
- H5 common positioning function package
- Is redis'module'not an internal or external command?
- Nuscenes data set summary
- MySQL advanced (13) command line export import database
猜你喜欢

Focus on improving women's and children's sense of gain, happiness and security! In the next ten years, Guangzhou Women's and children's undertakings will make such efforts

English grammar_ Reflexive pronoun

"Ask the sky" is in place! Yu Jingchuan's "China Space Station" in 2013 is about to set sail in the sea of stars

Sword finger offer 11. rotate the minimum number of the array

6. Object storage

Cookies and sessions

My creation anniversary (3rd Anniversary)

Simulate the implementation of strstr

Componentization and modularization

BMW I3 based on clar architecture is not a simple "oil to electricity" product
随机推荐
I was forced to graduate by a big factory and recited the eight part essay in a two-month window. Fortunately, I went ashore, otherwise I wouldn't be able to repay the mortgage
Study notes of filebeat
Redux best practices "Redux toolkit"
Apk packaging process
R language uses logistic regression, ANOVA, outlier analysis and visual classification iris iris data set
Rolling division, Young's matrix and three-step flip
ICO objects in classification
Remote sensing image classification tool and visualization application of WebGIS
Tp5.1 include include files (reference public files)
Details of happens before rules
【C】 Advanced knowledge of file operation
Digital commerce cloud fine chemical industry management platform integrated informatization solution
Permanently mount the image steps
Automatically create partition tables by time and month in PostgreSQL
Cloud native platform, let edge applications play out!
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
Cloudrev deploy your own public cloud disk (pagoda installation method)
Visualization of correlation coefficient matrix
In the post deep learning era, where is the recommendation system going?
Solution to the occupation of project startup port