Skip to content

Commit

Permalink
slow down I2C speed since we have long bus, fix a typo in blink logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed May 12, 2012
1 parent 74b6d24 commit 3d69964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void setup()


I2c.timeOut(500); // 500ms timeout to avoid lockups I2c.timeOut(500); // 500ms timeout to avoid lockups
I2c.pullup(false); //Disable internal pull-ups I2c.pullup(false); //Disable internal pull-ups
I2c.setSpeed(true); // Fast-mode support I2c.setSpeed(false); // Fast-mode support disabled
ardubus_setup(); ardubus_setup();
PCA9635.set_driver_mode(0x0); PCA9635.set_driver_mode(0x0);
PCA9635.set_sleep(0x0); PCA9635.set_sleep(0x0);
Expand Down
2 changes: 1 addition & 1 deletion software/middleware/middleware.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def cell_melt_warning_reset(self, x, y, z, sender):


@dbus.service.method('fi.hacklab.reactorsimulator.middleware') @dbus.service.method('fi.hacklab.reactorsimulator.middleware')
def start_blink(self, ledid, interval=250, maxpwm=255): 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 return False
if self.blink_states.has_key(ledid): if self.blink_states.has_key(ledid):
return False return False
Expand Down

0 comments on commit 3d69964

Please sign in to comment.