Skip to content

Commit

Permalink
Added the feature
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzaAllTheWay committed Mar 24, 2024
1 parent cdeaa23 commit 36139ff
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ def __init__(self,
PWM_MIN=[1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100],
PWM_MAX=[1900, 1900, 1900, 1900, 1900, 1900, 1900, 1900]):
# Initialice the I2C comunication
self.bus = None
try:
self.bus = smbus2.SMBus(I2C_BUS)
except Exception as errorCode:
print(
f"ERROR: Failed connection I2C buss nr {self.bus}: {errorCode}"
)
print(f"ERROR: Failed connection I2C buss nr {self.bus}: {errorCode}")
self.PICO_I2C_ADDRESS = PICO_I2C_ADDRESS

# Set mapping, direction and offset for the thrusters
Expand Down

0 comments on commit 36139ff

Please sign in to comment.