Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

slow down I2C speed since we have long bus, fix a typo in blink logic

  • Loading branch information...
commit 3d6996465645df14f1290f703502f8b75cc4f713 1 parent 74b6d24
@rambo rambo authored
View
2  software/arDuBUS/generated/rod_control_panel/rod_control_panel.ino
@@ -22,7 +22,7 @@ void setup()
I2c.timeOut(500); // 500ms timeout to avoid lockups
I2c.pullup(false); //Disable internal pull-ups
- I2c.setSpeed(true); // Fast-mode support
+ I2c.setSpeed(false); // Fast-mode support disabled
ardubus_setup();
PCA9635.set_driver_mode(0x0);
PCA9635.set_sleep(0x0);
View
2  software/middleware/middleware.py
@@ -112,7 +112,7 @@ def cell_melt_warning_reset(self, x, y, z, sender):
@dbus.service.method('fi.hacklab.reactorsimulator.middleware')
def start_blink(self, ledid, interval=250, maxpwm=255):
- if not self.config['top_led_map'].has_key(ledid):
+ if not self.config['top_led_map']['led_ids'].has_key(ledid):
return False
if self.blink_states.has_key(ledid):
return False
Please sign in to comment.
Something went wrong with that request. Please try again.