mirror of
https://github.com/whowechina/diva_pico.git
synced 2026-10-11 08:38:16 +03:00
19 lines
460 B
C
19 lines
460 B
C
/*
|
|
* MP121 Captive Touch Sensor
|
|
* WHowe <github.com/whowechina>
|
|
*
|
|
*/
|
|
|
|
#ifndef MP121_H
|
|
#define MP121_H
|
|
|
|
void mpr121_init(uint8_t addr);
|
|
|
|
uint16_t mpr121_touched(uint8_t addr);
|
|
void mpr121_raw(uint8_t addr, uint16_t *raw, int num);
|
|
void mpr121_filter(uint8_t addr, uint8_t ffi, uint8_t sfi, uint8_t esi);
|
|
void mpr121_sense(uint8_t addr, int8_t sense, int8_t *sense_keys, int num);
|
|
void mpr121_debounce(uint8_t addr, uint8_t touch, uint8_t release);
|
|
|
|
#endif
|