mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Started on adding a configurable delay in case leds are ahead of picture
Former-commit-id: 9eedf27c9cb51d05fca2ec2f0f9edae4726ac54d
This commit is contained in:
		| @@ -80,7 +80,8 @@ | ||||
| 		{ | ||||
| 			"type"            : "none", | ||||
| 			"time_ms"         : 200, | ||||
| 			"updateFrequency" : 20.0000 | ||||
| 			"updateFrequency" : 20.0000, | ||||
| 			"framesDelay"     : 0 | ||||
| 		} | ||||
| 	}, | ||||
|  | ||||
|   | ||||
| @@ -243,6 +243,7 @@ LedDevice * Hyperion::createColorSmoothing(const Json::Value & smoothingConfig, | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| //			const unsigned framesDelay = smoothingConfig.get("framesDelay", Json::Value(0u)).asUInt(); | ||||
| 			std::cout << "Creating linear smoothing" << std::endl; | ||||
| 			return new LinearColorSmoothing(ledDevice, smoothingConfig["updateFrequency"].asDouble(), smoothingConfig["time_ms"].asInt()); | ||||
| 		} | ||||
|   | ||||
| @@ -119,18 +119,16 @@ int main(int argc, char** argv) | ||||
| 		{ | ||||
| 			const Json::Value effectConfigArgs = effectConfig["args"]; | ||||
| 			if (hyperion.setEffect(effectName, effectConfigArgs, priority, duration_ms) == 0) | ||||
|                         { | ||||
|                                 std::cout << "Boot sequence(" << effectName << ") with user-defined arguments created and started" << std::endl; | ||||
|                         } | ||||
|                         else | ||||
|                         { | ||||
|                                 std::cout << "Failed to start boot sequence: " << effectName << " with user-defined arguments" << std::endl; | ||||
|                         } | ||||
|  | ||||
| 			{ | ||||
| 					std::cout << "Boot sequence(" << effectName << ") with user-defined arguments created and started" << std::endl; | ||||
| 			} | ||||
| 			else | ||||
| 			{ | ||||
| 					std::cout << "Failed to start boot sequence: " << effectName << " with user-defined arguments" << std::endl; | ||||
| 			} | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
|  | ||||
| 			if (hyperion.setEffect(effectName, priority, duration_ms) == 0) | ||||
| 			{ | ||||
| 				std::cout << "Boot sequence(" << effectName << ") created and started" << std::endl; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user