Skip to content

Commit

Permalink
Fix: mypy type error on the i2c pins in ina219
Browse files Browse the repository at this point in the history
  • Loading branch information
Suke0811 committed Sep 21, 2024
1 parent fce0b16 commit a901cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edg/parts/Ina219.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):

self.i2c = self.Port(I2cTarget(DigitalBidir.empty(), addresses=[0x40]))
self.i2c.sda.init_from(dio_sda_model)
self.i2c.scl.init_from(dio_model)
self.i2c.scl.init_from(DigitalSink.from_bidir(dio_model))

self.in_pos = self.Port(AnalogSink(voltage_limits=(0.0, 26) * Volt))
self.in_neg = self.Port(AnalogSink(voltage_limits=(0.0, 26) * Volt))
Expand Down

0 comments on commit a901cb7

Please sign in to comment.