Git Product home page Git Product logo

gt1151's Introduction

GT1151

介绍

适配 RT-Thread 的 GT1151 驱动,已对接 TOUCH 设备框架。

该驱动目前仅支持一点触摸,轮询方式,配合 GUI 框架能够简单使用。

目录结构

名称 说明
docs 文档目录
examples 例子目录,并有相应的一些说明
inc 头文件目录
src 源代码目录

许可证

GT1151 package 遵循 Apache-2.0 License 许可,详见 LICENSE 文件。

依赖

  • RT-Thread 4.0
  • RT-Thread I2C 设备框架

如何打开 GT1151

使用 GT1151 package 需要在 RT-Thread 的包管理器中选择它,具体路径如下:

RT-Thread online packages
    peripherals packages --->
        [*] touch package --->
           [*] gt1151

然后让 RT-Thread 的包管理器自动更新,或者使用 pkgs --update 命令更新包到 BSP 中。

使用 GT1151

由于 GT1151 依赖 I2C 设备框架,因此需要先配置好 I2C,然后可以使用 i2c-tools 软件包来验证是否配置成功,ART-PI 直接选中 BSP 包里的选项即可。

Hardware Drivers Config --->
	On-chip Peripheral --->
		[*] Enable I2C1 BUS(software simulation)

然后再添加 GT1151 软件包,编译下载,即可看见 demo 示例的运行,轻触触摸板会显示坐标信息。

该驱动已对接 TOUCH 设备框架,默认设备名为 "gt1151",用标准的 TOUCH 设备使用方式即可。

注意事项

联系方式 & 感谢

gt1151's People

Contributors

jackistang 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.