当前位置:网站首页>STM32 lights up the 1.8-inch screen under Arduino IDE
STM32 lights up the 1.8-inch screen under Arduino IDE
2022-07-05 08:29:00 【Sharing master】
Premise : I've been using it for two days stm32, Plus screen display , You can't use it directly after looking for a lot of bitterness , It's very unpleasant , Now it can be basically lit , recorded
I bought a piece on Taobao before stm32, Always in the midst of ashes , It looks like this , There was a general yesterday arduino make sense of sth. , For details, please refer to another article (https://blog.csdn.net/yyandad/article/details/105659633)
2、 Because the interface of the development board is different from the general order , So pay attention when buying a screen , I bought this screen at that time ,
3、 The order of screen and development board is the same , The screen pins are shown in the following figure 
This is the pin of the development board 
4、 Pin sequence
SDA/SDI/MOSI(it means LCD_Model Pin_SDA/SDI/MOSI Connect to Arduino_UNO Pin11)
SCL/CLK/SCLK(it means LCD_Model Pin_SCL/CLK/SCLK Connect to Arduino_UNO Pin10)
CS/CE(it means LCD_Model Pin_CS/CE Connect to Arduino_UNO Pin9)
RST/RESET(it means LCD_Model Pin_RST/RESET Connect to Arduino_UNO Pin12)
RS/DC(it means LCD_Model Pin_RS/DC Connect to Arduino_UNO Pin8)
5、 Library functions used
[1]: https://github.com/adafruit/Adafruit-ST7735-Library
There is no way to use the original library function directly , Refer to the following modifications :
Pin definition and configuration
#define TFT_MOSI PB15 // Data out
#define TFT_SCLK PB13 // Clock out
#define TFT_CS PB12
#define TFT_DC PB1
#define TFT_RST PB14`
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
Start point and end point
stay Adafruit_ST77xxx.h Set the starting point in
`protected:
uint8_t _colstart = 2, ///< Some displays need this changed to offset
_rowstart = 1, ///< Some displays need this changed to offset
spiMode = SPI_MODE0; ///< Certain display needs MODE3 instead`
// Set the end point
#define ST7735_TFTHEIGHT_128 130 // for 1.44" display
#define ST7735_TFTHEIGHT_160 161 // for 1.8" and mini display
边栏推荐
- Example 009: pause output for one second
- Anonymous structure in C language
- Example 002: the bonus paid by the "individual income tax calculation" enterprise is based on the profit commission. When the profit (I) is less than or equal to 100000 yuan, the bonus can be increase
- 剑指 Offer 09. 用两个栈实现队列
- Live555 push RTSP audio and video stream summary (III) flower screen problem caused by pushing H264 real-time stream
- 亿学学堂给的证券账户安不安全?哪里可以开户
- 99 multiplication table (C language)
- MHA High available Cluster for MySQL
- Installation and use of libjpeg and ligpng
- Matlab tips (28) fuzzy comprehensive evaluation
猜你喜欢

Step motor generates S-curve upper computer

Example 009: pause output for one second

QEMU STM32 vscode debugging environment configuration

STM32 tutorial triple ADC interleaved sampling

Ble encryption details

Brief discussion on Buck buck circuit

Several important parameters of LDO circuit design and type selection

剑指 Offer 09. 用两个栈实现队列

Hardware and software solution of FPGA key chattering elimination

H264 (I) i/p/b frame gop/idr/ and other parameters
随机推荐
MySQL之MHA高可用集群
Explain task scheduling based on Cortex-M3 in detail (Part 1)
实例006:斐波那契数列
Talk about the circuit use of TVs tube
STM32 --- configuration of external interrupt
What are the test items of power battery ul2580
leetcode - 445. 两数相加 II
STM32 single chip microcomputer - external interrupt
Five design details of linear regulator
Simple design description of MIC circuit of ECM mobile phone
MHA High available Cluster for MySQL
Bluebridge cup internet of things competition basic graphic tutorial - clock selection
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Example 005: three numbers sorting input three integers x, y, Z, please output these three numbers from small to large.
Explain task scheduling based on Cortex-M3 in detail (Part 2)
【云原生 | 从零开始学Kubernetes】三、Kubernetes集群管理工具kubectl
Count the number of inputs (C language)
[paper reading] the latest transfer ability in deep learning: a survey in 2022
Google sitemap files for rails Projects - Google sitemap files for rails projects
Adaptive filter