mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Added 'sedu' device based on RS232 device Former-commit-id: 918cbde65a4a14f532c2e08e104745715c3fdd37
		
			
				
	
	
		
			32 lines
		
	
	
		
			472 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			472 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
 | |
| // Local-Hyperion includes
 | |
| #include "LedDeviceTest.h"
 | |
| 
 | |
| LedDeviceTest::LedDeviceTest(const std::string& output) :
 | |
| 	_ofs(output.empty()?"/home/pi/LedDevice.out":output.c_str())
 | |
| {
 | |
| 	// empty
 | |
| }
 | |
| 
 | |
| LedDeviceTest::~LedDeviceTest()
 | |
| {
 | |
| 	// empty
 | |
| }
 | |
| 
 | |
| int LedDeviceTest::write(const std::vector<RgbColor> & ledValues)
 | |
| {
 | |
| 	_ofs << "[";
 | |
| 	for (const RgbColor& color : ledValues)
 | |
| 	{
 | |
| 		_ofs << color;
 | |
| 	}
 | |
| 	_ofs << "]" << std::endl;
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| int LedDeviceTest::switchOff()
 | |
| {
 | |
| 	return 0;
 | |
| }
 |