From 7f744128826b8328aaa6434fdcb8f0a272c87d72 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 1 Oct 2017 14:43:42 -0400 Subject: Make touch more sensitive. Add .raw_value and .threshold attributes. --- shared-bindings/touchio/TouchIn.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared-bindings/touchio/TouchIn.h') 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 -- cgit v1.2.3