File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
CircuitPython_Sip_and_Puff Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
Y_OFFSET = 3
35
35
TEXT_HEIGHT = 8
36
36
BOTTOM_ROW = DISPLAY_HEIGHT - TEXT_HEIGHT
37
- BANNER_STRING = "PUFF-O-TRON-9000 "
37
+ BANNER_STRING = "ST LPS33HW Sip & Puff "
38
38
pressure_string = " "
39
39
input_type_string = " "
40
40
# pylint:disable=too-many-locals,exec-used,eval-used
@@ -134,7 +134,7 @@ def run(self):
134
134
while True :
135
135
self .check_for_events ()
136
136
137
- def _catagorize_pressure (self , pressure ):
137
+ def _categorize_pressure (self , pressure ):
138
138
"""determine the strength and polarity of the pressure reading"""
139
139
level = 0
140
140
polarity = 0
@@ -170,7 +170,7 @@ def add_on_puff(self, new_callback):
170
170
def _update_state (self ):
171
171
"""Updates the internal state to detect if a sip/puff has been started or stopped"""
172
172
173
- self .current_polarity , level = self ._catagorize_pressure (self .current_pressure )
173
+ self .current_polarity , level = self ._categorize_pressure (self .current_pressure )
174
174
175
175
if self .state == DETECTED :
176
176
self .state = WAITING
You can’t perform that action at this time.
0 commit comments