ttp229_bool

TTP229 Capacitive Touch Sensor (I2C). http://www.tontek.com.tw/uploads/product/106/TTP229-LSF_V1.0_EN.pdf https://robotdyn.com/16-keys-capacitive-touch-ttp229-i2c-module.html The output is 16 bool signals with the 0/1 status of the electrodes (bits 0..15) Note: This object requires a single instance of the factory/gpio/i2c/config object. This allows multiple i2c devices (each with a unique i2c address) to work concurrently. Tested with I2C1, SCL=PB8, SDA=PB9 (these are the config defaults)
Author: Jason Harris
License: BSD
Github: deadsy/ttp229/ttp229_bool.axo

Inlets

None

Outlets

bool32 o0

bool32 o1

bool32 o2

bool32 o3

bool32 o4

bool32 o5

bool32 o6

bool32 o7

bool32 o8

bool32 o9

bool32 o10

bool32 o11

bool32 o12

bool32 o13

bool32 o14

bool32 o15

Declaration
struct ttp229_state state;
Init
ttp229_init(&state);
Control Rate
ttp229_krate_bool(&state, &outlet_o0, &outlet_o1, &outlet_o2, &outlet_o3,
                  &outlet_o4, &outlet_o5, &outlet_o6, &outlet_o7, &outlet_o8,
                  &outlet_o9, &outlet_o10, &outlet_o11, &outlet_o12,
                  &outlet_o13, &outlet_o14, &outlet_o15);
Dispose
ttp229_dispose(&state);

Privacy

© 2024 Zrna Research