Skip to content

Commit b3a5a36

Browse files
committed
adding doc comment to new function
1 parent 9f26602 commit b3a5a36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_apds9960/apds9960.py

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def enable_gesture(self, enable_flag):
202202
self._gesture_enable = enable_flag
203203

204204
def rotated_gesture(self, original_gesture):
205+
"""Applies rotation offset to the given gesture direction and returns the result"""
205206
directions = [1, 4, 2, 3]
206207
new_index = (directions.index(original_gesture) + self._rotation // 90) % 4
207208
return directions[new_index]

0 commit comments

Comments
 (0)