Skip to content

Commit

Permalink
Convert self.hardware to Ordered Dict (#42)
Browse files Browse the repository at this point in the history
* Convert self.hardware to OrderedDict

* Fix formatting issue for linter

---------

Co-authored-by: davit <[email protected]>
  • Loading branch information
dbgen1 and g-e-n authored Oct 31, 2024
1 parent 5da4463 commit ddbd5e8
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions FC_Board/lib/pysquared.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from bitflags import bitFlag, multiBitFlag, multiByte
from micropython import const
from debugcolor import co
from collections import OrderedDict

# Hardware Specific Libs
import pysquared_rfm9x # Radio
Expand Down Expand Up @@ -118,25 +119,28 @@ def __init__(self):
"pwr": 23,
"st": 80000,
}
self.hardware = {
"I2C0": False,
"SPI0": False,
"I2C1": False,
"UART": False,
"IMU": False,
"Mag": False,
"Radio1": False,
"SDcard": False,
"NEOPIX": False,
"WDT": False,
"TCA": False,
"CAN": False,
"Face0": False,
"Face1": False,
"Face2": False,
"Face3": False,
"Face4": False,
}

self.hardware = OrderedDict(
[
("I2C0", False),
("SPI0", False),
("I2C1", False),
("UART", False),
("Radio1", False),
("IMU", False),
("Mag", False),
("SDcard", False),
("NEOPIX", False),
("WDT", False),
("TCA", False),
("CAN", False),
("Face0", False),
("Face1", False),
("Face2", False),
("Face3", False),
("Face4", False),
]
)

"""
NVM Parameter Resets
Expand Down

0 comments on commit ddbd5e8

Please sign in to comment.