Several updates - added support for second pattern engine and adding commands
[led-pattern-ed] / src / led-pattern.vala
index 002048c..de4e393 100644 (file)
@@ -72,6 +72,17 @@ class LedCommand : Object {
                changed ();
        }
 
+       public virtual void go_to_start () {
+               type = CommandType.GO_TO_START;
+               changed ();
+       }
+
+       public virtual void end (bool reset) {
+               type = CommandType.END;
+               steps = reset ? -255 : 0;
+               changed ();
+       }
+
        public signal void changed ();
 }