Skip to content

Commit

Permalink
Configure pins for the new hardware revision
Browse files Browse the repository at this point in the history
  • Loading branch information
bjpirt committed Dec 2, 2023
1 parent 9137f34 commit bf1190e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platforms/esp32/wemos-d1/pyBms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@


def main():
uart = UART(1, 612500, tx=13, rx=15)
can = CAN(0, CAN.LOOPBACK, baudrate=500_000, tx=5, rx=23)
uart = UART(1, 612500, tx=33, rx=32)
can = CAN(0, CAN.LOOPBACK, baudrate=500_000, tx=5, rx=17)
uart.init(timeout=5, timeout_char=5)
config = Config()
gateway = TeslaModelSNetworkGateway(uart, config)
pack = TeslaModelSBatteryPack(gateway, config)
current_sensor = C2TTransducer(config, sda_pin=19, sck_pin=18)
current_sensor = C2TTransducer(config, sda_pin=14, sck_pin=15)
bms = Bms(pack, config, current_sensor)
victronOutput = VictronOutput(can, bms, 0.5)
Network(bms, config)
Expand Down

0 comments on commit bf1190e

Please sign in to comment.