Code Monkey home page Code Monkey logo

tt_touchkeypadttp229's Introduction

Robotdyn TTP229 Capacitive Touch Library

Written by Patrick Neggie, 2018 <[email protected]>

An Arduino library for controlling a 15 and 16 capacitive touch key pad and disk pads (model TTP229). Tested with the Robotdyn I2C Capacitive Touch Module, Robotdyn Capacitive Touch Disk Pad, and Robotdyn Capacitive Touch Keypad

Installation

Clone this GitHub repository and place the TTP299_touch_keypad library folder in your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the Arduino IDE.

Note:

You must type #include <Wire.h> at the top of each file you intend to use with this library as this library is dependent on <Wire.h>.

Features

  • Set and check passwords to block intruders
  • Print capacitive touch readings to the Serial monitor
// prints capacitive keys pressed to Serial monitor in form of bits
// i.e. 2,5 and 13 pressed on a 16-key keypad would result in: 0100100000001000
void printData();

// captures password through pressing of keys
// can press down any combination of keys to form password
// open Serial monitor for optimal user experience
void setPassword();

// returns whether or not current keys pressed are the same as password
// if debug == 1, user is prompted with correct password & incorrect password they entered
bool checkPassword(int debug = 0);

Usage

Read the .h file for instructions on how to use each of the functions. Check out our examples to get some inspiration.

tt_touchkeypadttp229's People

Contributors

patrick9958 avatar

Watchers

James Cloos 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.