本课程深入讲解如何利用ESP32的I2C接口驱动CST816T触摸芯片。课程从I2C通信原理出发,详细阐述了I2C的硬件连接、通信时序和关键信号,如起始信号、ACK/NACK机制。通过分析CST816T数据手册,学习了如何通过I2C接口进行读写操作,获取触摸坐标。实战部分展示了如何在ESP32上实现CST816T的初始化和读取触摸数据,以及如何使用LVGL...
git config --global user.name userName git config --global user.email userEmail 分支1 标签0 jacky.liuInitial commit5d4a07d2年前 188 次提交 提交 .github Create auto-comment.yml 5年前 lvgl_i2c Addresses confusion: I2C manager component install only when others ne… ...
Also as i know CST816S should already transfer gesture types(it is so with arduino library) but in esp-idf component there are no functions that gives me them. So wether help me to add it in my code or modify component please. Thank you!
初始化ST7789硬件接口:配置显示芯片的硬件接口。 初始化CST816T硬件接口:配置触摸芯片的硬件接口。 提供一个定时器给LVGL使用:用于处理动态效果。 二、组件配置 在ESP-IDF中,组件可以认为是模块化的代码集合,一般用于实现特定的功能。我们首先需要在顶层的CMakeLists.txt文件中添加一个组件路径。 # 在顶层的CMakeLis...
cst816_example.pyTouch the screen and print the corresponding coordinates alien.pyDisplay the "alien.jpg" image randomly bitarray.pyCreate and display animation of the Pac-Man sprite in multiple random locations hello.pyRandomly display different colors of "Hello!" text, and you can switch differ...
TFT为ST7789,触摸芯片使用电容屏芯片CST816D。购自某宝,价格有点小贵,但尺寸适合88*38的小机箱。分辨率170*320。 1.arduino下安装LVGL和TFT_eSPI库。 安装方法很多,百度一下这个没什么坑。 arduino个人习惯2.X版本,但是有时要使用1.8.X,至于原因后面会讲到,所以要装2个版本,下文没特别说明的都是2.X上进行操...
= ESP_OK)) { ESP_LOGE(TAG, "Error reading from device: %s", esp_err_to_name(ret)); // Only show error the first time ESP_LOGE(TAG, "device ID: %02x", data_buf[0]); // return; } cst816t_status.inited = true; } } bool cst816t_read(lv_indev_drv_t *drv, lv_indev_...
我这里使用的是1.69寸ST7789显示驱动+CST816触摸驱动的触摸屏,规格是240*280 创建好后,如下: 2.界面设计 先在左侧对screen界面组件进行复制粘贴出第二个 对第一个界面进行设计,添加一个组件按钮 第二个界面也是同理,不过需要把Button文本更改成Button2,方便识别出来 还可以给它换个背景颜色(点击该按钮后,进入属性...
Fork 本仓库 新建Feat_xxx 分支 提交代码 新建Pull Request 简介 1)VSCode + PlatformIO + arduino + LVGL + ESP32开发板 + GC9A01显示驱动 + CST816D触摸驱动 2)LVGL的应用开发 暂无标签 C++ Apache-2.0 保存更改 发行版 暂无发行版 贡献者(1) 全部...
I'm using esp32c3 mini 1U with 4mb flash. This time, after running command: python3 make.py --optimize-size --flash-size=4 esp32 BOARD=ESP32_GENERIC_C3 DISPLAY=gc9a01 INDEV=cst816s and uploading bin to device micropython is launching and giving prompt. Now when i try to launch code...