Нет описания

Lesords 3c0f22ee2d ci: add an action to automatically close stale issues and PRs 1 год назад
.github 3c0f22ee2d ci: add an action to automatically close stale issues and PRs 1 год назад
examples d90bdf4a09 Pretty printed the Arduino code with astyle 6 лет назад
.gitattributes b97b49c28c add .gitattributes 7 лет назад
.gitignore 0f3eff1197 add .gitignore 7 лет назад
.gitlab-ci.yml 7642ec1741 Seeed:Arduino: fix travis.yml write error 5 лет назад
.travis.yml 7642ec1741 Seeed:Arduino: fix travis.yml write error 5 лет назад
License.txt 18db672cbb get data ok 11 лет назад
README.md 6274cc4769 Seeed:Arduino: Add travis build status 6 лет назад
Seeed_QTouch.cpp 8ab35500f0 added "void" keyword to "SeeedQTouch::chipPresent()" 4 лет назад
Seeed_QTouch.h d90bdf4a09 Pretty printed the Arduino code with astyle 6 лет назад
keywords.txt 43a5bcf825 udpate keywords.txt 7 лет назад
library.properties 9c3d40c80c add library.properties 7 лет назад

README.md

Seeed QTouch Build Status

Grove-Q Touch Sensor

LED Bar, common in volume display, is a common sensor component to display analog value. You can use a row of discrete LED lights to make division of this effect, you can also use our element mentioned here.

For more information, please refer to wiki

Usage

  1. To judge certain key if touched

    unsigned char isTouch(int key)      // key- 0~6, if touched return 1
    
  2. Get touch state

bits 0 to 6 indicate which keys are in detection, if any. Touched keys report as 1, untouched or disabled keys report as 0.

    unsigned char getState();
  1. Get Touch Num

    int touchNum();
    

    if no touched, return -1. or will return the touched key number.

  2. Set group for a key

    setGroup(uint8_t key, uint8_t group);

    This is used to assign keys to group of which only one can be pressed at a time. Valid group numbers: 0~3, group 255 disables the key.

  3. Query if the touch sensor IC is present

    int chipPresent();

    Returns 1 if the chip ID matches, 0 if not or no reply.


This software is written by Loovee for seeed studio
and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

Analytics