From 8a08b9dce9cfc161494ddb07a1c979c7796780ff Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 15 Jun 2012 22:56:00 +0200 Subject: restructure code it is now loading its components from plugins --- actuators/blinkm.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actuators/blinkm.vala') diff --git a/actuators/blinkm.vala b/actuators/blinkm.vala index be98260..8068666 100644 --- a/actuators/blinkm.vala +++ b/actuators/blinkm.vala @@ -47,7 +47,7 @@ public class BlinkM : I2CDevice { } public BlinkM(uint8 dev, uint8 addr = 0x09) throws I2CError { - base(dev, addr); + setup(dev, addr); } public void get_firmware_version(out char major, out char minor) throws I2CError { @@ -81,14 +81,14 @@ public class BlinkM : I2CDevice { write_byte(start); } - public void set(uint8 red, uint8 green, uint8 blue) throws I2CError { + public void set_color(uint8 red, uint8 green, uint8 blue) throws I2CError { write_byte('n'); write_byte(red); write_byte(green); write_byte(blue); } - public void get(out uint8 red, out uint8 green, out uint8 blue) throws I2CError { + public void get_color(out uint8 red, out uint8 green, out uint8 blue) throws I2CError { write_byte('g'); red = read_byte(); green = read_byte(); -- cgit v1.2.3