mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
fixes to small test tools to compile cleanly (#67)
* fixes to small test tools to compile cleanly * Another small change to allow -DENABLE_TESTS to compile on osmc with qt5
This commit is contained in:
@@ -54,7 +54,7 @@ void setColor(char* colorStr)
|
||||
unsigned ledCnt = 50;
|
||||
std::vector<ColorRgb> buff(ledCnt, color);
|
||||
|
||||
LedDeviceWs2801 ledDevice("/dev/spidev0.0", 40000);
|
||||
LedDeviceWs2801 ledDevice("/dev/spidev0.0", 40000, 500000);
|
||||
ledDevice.open();
|
||||
ledDevice.write(buff);
|
||||
}
|
||||
@@ -68,7 +68,7 @@ void doCircle()
|
||||
unsigned ledCnt = 50;
|
||||
std::vector<ColorRgb> data(ledCnt, ColorRgb::BLACK);
|
||||
|
||||
LedDeviceWs2801 ledDevice("/dev/spidev0.0", 40000);
|
||||
LedDeviceWs2801 ledDevice("/dev/spidev0.0", 40000, 500000);
|
||||
ledDevice.open();
|
||||
|
||||
timespec loopTime;
|
||||
|
Reference in New Issue
Block a user