Giter VIP home page Giter VIP logo

mai2touch's Introduction

Mai2Touch

使用 Arduino 制作的 mai2 触摸和按键灯。
触摸通信数据格式可参考 Mai2Touch-Data.txt
按键灯通信可参考Mai2LED-Data.txt
触摸程序 mpr121 仅简单测试支持,未完整游玩测试。

待完成:

  • 添加 mpr121 触摸支持
  • 添加敏感度调节实现方式
  • 收集硬件测试结果 & 等待错误报告

Mai2Touch 使用方法:

  • 上传程序
  • 打开设备管理器,设置 Arduino 的 COM 号,1P = COM3,2P = COM4
  • mai2.ini内,在[AM]下添加DummyTouchPanel=1IgnoreError=1
    • 添加DummyTouchPanel=1是为了屏蔽缺少 2P 触摸设备的错误报告,在没有接 HID 触摸设备的情况下,该设置不会影响触摸状态
    • 如果发现有影响,则可以改成DummyTouchPanel=0然后添加IgnoreError=1
    • 如果有接了两个触摸设备,可以不添加
  • 启动游戏

Mai2LED 使用方法:

  • 上传程序
  • 打开设备管理器,设置 Arduino 的 COM 号,1P = COM21,2P = COM23
  • mai2.ini内,在[AM]下添加DummyLED=1
    • 目前的程序并未对 LED 初始化指令响应,所以必须添加DummyLED=1屏蔽报错,不会影响 LED 数据的接收
  • 启动游戏

已测试开发板:

  • SparkFun Pro Micro(ATmega32U4)
  • NodeMCU 1.0(ESP-12E + CP2102 & CH340),SDA=D2,SCL=D1

引用 & 参考:

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.