diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-10-01 14:43:42 -0400 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-10-02 11:15:51 -0700 |
| commit | 7f744128826b8328aaa6434fdcb8f0a272c87d72 (patch) | |
| tree | f83374d475e9d42e472c7a4645759a44f40c67bb /shared-bindings/touchio/TouchIn.h | |
| parent | b2dcc5bb6c50f9b6eb3c294c98df8a5880167fd8 (diff) | |
Make touch more sensitive. Add .raw_value and .threshold attributes.
Diffstat (limited to 'shared-bindings/touchio/TouchIn.h')
| -rw-r--r-- | shared-bindings/touchio/TouchIn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-bindings/touchio/TouchIn.h b/shared-bindings/touchio/TouchIn.h index 6ee668f38..0570afb20 100644 --- a/shared-bindings/touchio/TouchIn.h +++ b/shared-bindings/touchio/TouchIn.h @@ -35,5 +35,8 @@ extern const mp_obj_type_t touchio_touchin_type; void common_hal_touchio_touchin_construct(touchio_touchin_obj_t* self, const mcu_pin_obj_t *pin); void common_hal_touchio_touchin_deinit(touchio_touchin_obj_t* self); bool common_hal_touchio_touchin_get_value(touchio_touchin_obj_t *self); +uint16_t common_hal_touchio_touchin_get_raw_value(touchio_touchin_obj_t *self); +uint16_t common_hal_touchio_touchin_get_threshold(touchio_touchin_obj_t *self); +void common_hal_touchio_touchin_set_threshold(touchio_touchin_obj_t *self, uint16_t new_threshold); #endif // MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO_TOUCHIN_H |
