aboutsummaryrefslogtreecommitdiff
path: root/shared-bindings/touchio/TouchIn.h
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-10-01 14:43:42 -0400
committerScott Shawcroft <scott@tannewt.org>2017-10-02 11:15:51 -0700
commit7f744128826b8328aaa6434fdcb8f0a272c87d72 (patch)
treef83374d475e9d42e472c7a4645759a44f40c67bb /shared-bindings/touchio/TouchIn.h
parentb2dcc5bb6c50f9b6eb3c294c98df8a5880167fd8 (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.h3
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