mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix strobe effect frequency (#300)
* fix strobe effect frequency * Changed the frequency in the effect definitions
This commit is contained in:
parent
1b62d9d717
commit
6b3f0e42b5
@ -4,6 +4,6 @@
|
|||||||
"args" :
|
"args" :
|
||||||
{
|
{
|
||||||
"color" : [ 0, 0, 255 ],
|
"color" : [ 0, 0, 255 ],
|
||||||
"frequency" : 10.0
|
"frequency" : 5.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
"args" :
|
"args" :
|
||||||
{
|
{
|
||||||
"color" : [ 188, 17, 66 ],
|
"color" : [ 188, 17, 66 ],
|
||||||
"frequency" : 10.0
|
"frequency" : 5.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
"args" :
|
"args" :
|
||||||
{
|
{
|
||||||
"color" : [ 255, 255, 255 ],
|
"color" : [ 255, 255, 255 ],
|
||||||
"frequency" : 10.0
|
"frequency" : 5.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ frequency = float(hyperion.args.get('frequency', 10.0))
|
|||||||
frequency = min(100.0, frequency)
|
frequency = min(100.0, frequency)
|
||||||
|
|
||||||
# Compute the strobe interval
|
# Compute the strobe interval
|
||||||
sleepTime = 1.0 / frequency
|
sleepTime = 0.5 / frequency
|
||||||
|
|
||||||
# Start the write data loop
|
# Start the write data loop
|
||||||
while not hyperion.abort():
|
while not hyperion.abort():
|
||||||
|
Loading…
Reference in New Issue
Block a user