aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test26
1 files changed, 15 insertions, 11 deletions
diff --git a/test b/test
index 3549fc5..c976a6d 100644
--- a/test
+++ b/test
@@ -1,12 +1,16 @@
-machine temp_switch
-[
- state above_treshold;
- starting state below_treshold;
-
- from below_treshold to above_treshold
- on event above_temperature "10";
- from above_treshold to below_treshold
- on event below_temperature "9";
- on state above_treshold
- on event get_temp | html_encase | http_out ;
+machine flicker
+[
+ states [ light_off , light_on ];
+
+ starting on light_on;
+
+ events [ one_second ];
+ transitions
+ [
+ from light_on to light_off on event one_second
+ execute turn_off_light;
+ from light_off to light_on on event one_second
+ execute turn_on_light;
+ ];
];
+