Skip to content

Commit 19db4e5

Browse files
committed
changes to seesaw.py
1 parent 8c94d5e commit 19db4e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_seesaw/seesaw.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121

122122
#TODO: update when we get real PID
123123
_CRICKIT_PID = const(9999)
124+
_ROBOHATMM1_PID = const(9998)
124125

125126
class Seesaw:
126127
"""Driver for Seesaw i2c generic conversion trip
@@ -156,6 +157,9 @@ def sw_reset(self):
156157
if pid == _CRICKIT_PID:
157158
from adafruit_seesaw.crickit import Crickit_Pinmap
158159
self.pin_mapping = Crickit_Pinmap
160+
elif pid == _ROBOHATMM1_PID:
161+
from adafruit_seesaw.robohat import MM1_Pinmap
162+
self.pin_mapping = MM1_Pinmap
159163
else:
160164
from adafruit_seesaw.samd09 import SAMD09_Pinmap
161165
self.pin_mapping = SAMD09_Pinmap

0 commit comments

Comments
 (0)