Skip to content

Commit e30cf6e

Browse files
committed
chore: reorganize list
1 parent d69c530 commit e30cf6e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

gpio_expander.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,21 +241,27 @@ def output(self, gpio: int, _value: bool) -> None:
241241
setattr(self, f"O{_name}{_idx}", _value)
242242

243243

244-
class PCA9555(BaseGPIOExpander):
245-
_NUM_GPIO = 16
244+
# PCA series
245+
class PCA9534(BaseGPIOExpander):
246+
_NUM_GPIO = 8
246247

247248

248249
class PCA9535(BaseGPIOExpander):
249250
_NUM_GPIO = 16
250251

251252

252-
class PCA9534(BaseGPIOExpander):
253+
class PCA9555(BaseGPIOExpander):
254+
_NUM_GPIO = 16
255+
256+
257+
# TCA series
258+
class TCA9534(BaseGPIOExpander):
253259
_NUM_GPIO = 8
254260

255261

256262
class TCA9535(BaseGPIOExpander):
257263
_NUM_GPIO = 16
258264

259265

260-
class TCA9534(BaseGPIOExpander):
261-
_NUM_GPIO = 8
266+
class TCA9555(BaseGPIOExpander):
267+
_NUM_GPIO = 16

0 commit comments

Comments
 (0)