summaryrefslogtreecommitdiffstats
path: root/actuators/motor/atmostripe.vala
diff options
context:
space:
mode:
Diffstat (limited to 'actuators/motor/atmostripe.vala')
-rw-r--r--actuators/motor/atmostripe.vala19
1 files changed, 18 insertions, 1 deletions
diff --git a/actuators/motor/atmostripe.vala b/actuators/motor/atmostripe.vala
index 0cc4eef..ad996e7 100644
--- a/actuators/motor/atmostripe.vala
+++ b/actuators/motor/atmostripe.vala
@@ -14,7 +14,19 @@
*/
public class AtmostripeMotorController : SerialDevice, MotorController {
- public void set(uint8 m, uint8 v) {
+ public uint8 min {
+ get { return 0; }
+ }
+
+ public uint8 max {
+ get { return 255; }
+ }
+
+ public void init(KeyFile cfg) throws Error {
+ /* */
+ }
+
+ public void set_single(uint8 m, uint8 v) {
/* */
}
@@ -22,3 +34,8 @@ public class AtmostripeMotorController : SerialDevice, MotorController {
/* */
}
}
+
+public Type register_plugin (Module module) {
+ // types are registered automatically
+ return typeof(AtmostripeMotorController);
+}