lib/xilight.rb in xilight-0.1.6 vs lib/xilight.rb in xilight-0.1.7
- old
+ new
@@ -124,11 +124,11 @@
end
# This method is used to start a color flow. Color flow is a series of smart
# LED visible state changes. It can be either brightness changing, color changing
# or color temperature changing
- def start_cf(count, action, flow_expression)
- request({id: 9,method: 'set_power', params: [count,action,flow_expression]})
+ def start_cf(count=0, action=1, flow_expression="1000,2,2700,100,500,1,255,10,5000,7,0,0,500,2,5000,1")
+ request({id: 9, method: 'start_cf', params: [count,action,flow_expression]})
end
# This method is used to stop a running color flow.
def stop_cf
request({id: 10,method: 'stop_cf', params: []})