mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Leddevice refactoring the next part (#253)
* add general switchOff * refactoring of leddevices regarding ledcount and switchoff * remove obsolete includes
This commit is contained in:
@@ -61,7 +61,7 @@ void setColor(char* colorStr)
|
||||
|
||||
LedDeviceWs2801 ledDevice(deviceConfig);
|
||||
ledDevice.open();
|
||||
ledDevice.write(buff);
|
||||
ledDevice.setLedValues(buff);
|
||||
}
|
||||
|
||||
bool _running = true;
|
||||
@@ -110,7 +110,7 @@ void doCircle()
|
||||
|
||||
data[curLed_2] = color_2;
|
||||
|
||||
ledDevice.write(data);
|
||||
ledDevice.setLedValues(data);
|
||||
|
||||
nanosleep(&loopTime, NULL);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ void doCircle()
|
||||
data[curLed_1] = ColorRgb::BLACK;
|
||||
data[curLed_2] = ColorRgb::BLACK;
|
||||
|
||||
ledDevice.write(data);
|
||||
ledDevice.setLedValues(data);
|
||||
}
|
||||
|
||||
#include <csignal>
|
||||
|
Reference in New Issue
Block a user