From 8690c58773547260838d38427d7807639b3cbe19 Mon Sep 17 00:00:00 2001 From: siddacious Date: Tue, 11 Feb 2020 15:07:46 -0800 Subject: [PATCH 1/2] spelling fix --- CircuitPython_Sip_and_Puff/puff_detector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CircuitPython_Sip_and_Puff/puff_detector.py b/CircuitPython_Sip_and_Puff/puff_detector.py index 9f7d3a2cb..ad4394e27 100644 --- a/CircuitPython_Sip_and_Puff/puff_detector.py +++ b/CircuitPython_Sip_and_Puff/puff_detector.py @@ -134,7 +134,7 @@ class PuffDetector: while True: self.check_for_events() - def _catagorize_pressure(self, pressure): + def _categorize_pressure(self, pressure): """determine the strength and polarity of the pressure reading""" level = 0 polarity = 0 @@ -170,7 +170,7 @@ class PuffDetector: def _update_state(self): """Updates the internal state to detect if a sip/puff has been started or stopped""" - self.current_polarity, level = self._catagorize_pressure(self.current_pressure) + self.current_polarity, level = self._categorize_pressure(self.current_pressure) if self.state == DETECTED: self.state = WAITING From ade8c66178f81f4dd6ed8024b3639647c860adbe Mon Sep 17 00:00:00 2001 From: siddacious Date: Tue, 11 Feb 2020 16:27:40 -0800 Subject: [PATCH 2/2] changing name --- CircuitPython_Sip_and_Puff/puff_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CircuitPython_Sip_and_Puff/puff_detector.py b/CircuitPython_Sip_and_Puff/puff_detector.py index ad4394e27..5ab89463c 100644 --- a/CircuitPython_Sip_and_Puff/puff_detector.py +++ b/CircuitPython_Sip_and_Puff/puff_detector.py @@ -34,7 +34,7 @@ DISPLAY_HEIGHT = 64 Y_OFFSET = 3 TEXT_HEIGHT = 8 BOTTOM_ROW = DISPLAY_HEIGHT - TEXT_HEIGHT -BANNER_STRING = "PUFF-O-TRON-9000" +BANNER_STRING = "ST LPS33HW Sip & Puff" pressure_string = " " input_type_string = " " # pylint:disable=too-many-locals,exec-used,eval-used