GithubHelp home page GithubHelp logo

esp32_1.3_ips's Introduction

ESP32驱动1.3寸IPS屏

修改自gitee:菜大毛/KEY_ESP32 对应B站教程lvgl8学习笔记:2.基于ST7789芯片的1.54寸LCD屏幕驱动 spi方式(上)

我手上的板子是ESP-32S屏幕是1.3inch IPS Module,原例子跑不起来,修改了部分代码。

效果

代码修改

  1. components\user_dev\SPI\User_dev_spi.c
static const spi_device_interface_config_t devcfg = {
    .clock_speed_hz = SPI_MASTER_FREQ_40M,
    // 修改为模式2
    .mode = 2,
    .spics_io_num   = PIN_NUM_CS,
    .queue_size = 7
};
  1. components\user_dev\SPI\User_dev_spi.h
#define PIN_NUM_CLK  18
// 1.3寸屏没有引出CS引脚
#define PIN_NUM_CS -1
  1. components\user_mid\User_mid_LCD.h
// 修改了控制引脚
#define LCD_RES GPIO_NUM_33
#define LCD_DC GPIO_NUM_27
#define LCD_BLK GPIO_NUM_32

屏幕信息

1.3inch IPS Module

模块图片

引脚定义

序号 模块引脚 引脚说明
1 GND 液晶屏电源地
2 VCC 液晶屏电源正(3.3V)
3 SCL 液晶屏SPI总线时钟信号
4 SDA 液晶屏SPI总线写数据信号
5 RES 液晶屏复位控制信号(低电平复位)
6 DC 液晶屏寄存器/数据选择控制信号(低电平:寄存器,高电平:数据)
7 BLK 液晶屏背光控制信号(高电平点亮,如不需要控制,请接3.3V)

参数

名称 参数
显示颜色 RGB 65K 彩色
SKU MSP1308
尺寸 1.3(inch)
面板材质 TFT
驱动芯片 ST7789
分辨率 240*240 (Pixel)
显示接口 4-line SPI interface
有效显示区域(AA区) 23.40x23.40 (mm)
触摸屏类型 无触摸屏
触摸IC 无触摸IC
模块PCB底板尺寸 39.22x27.78 (mm)
视角 全角度
工作温度 -10℃~60℃
存储温度 -20℃~70℃
工作电压 3.3V
功耗 待定
产品重量(含包装) 9g

esp32_1.3_ips's People

Contributors

chenjr15 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.