Skip to content

Commit

Permalink
Added MCP Lib to FC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikefly123 committed Sep 14, 2024
1 parent d3775f0 commit 8ee23f9
Show file tree
Hide file tree
Showing 5 changed files with 1,196 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Batt_Board/lib/pysquared_eps.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ def __init__(self):

# Initialize CAN Transceiver
try:
self.spi0cs2 = digitalio.DigitalInOut(board.SPI0_CS2)
self.spi0cs2.switch_to_output()
self.spi0cs0 = digitalio.DigitalInOut(board.SPI0_CS0)
self.spi0cs0.switch_to_output()
self.can_bus = CAN(self.spi0, self.spi0cs2, loopback=True, silent=True)
self.hardware["CAN"] = True

Expand Down
Loading

0 comments on commit 8ee23f9

Please sign in to comment.