Changed the constructor of LedDeviceW2801 (only incl required parameters)

Changed the call sign of the write functions (included const declaration of color parameter)
This commit is contained in:
T. van der Zwan
2013-09-09 15:23:44 +00:00
parent 8441dd51cc
commit db708da60a
3 changed files with 7 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ void setColor(char* colorStr)
unsigned ledCnt = 50;
std::vector<RgbColor> buff(ledCnt, color);
LedDeviceWs2801 ledDevice("SpiPi", "/dev/spidev0.0", 20000, 40000);
LedDeviceWs2801 ledDevice("/dev/spidev0.0", 40000);
ledDevice.open();
ledDevice.write(buff);
}
@@ -68,7 +68,7 @@ void doCircle()
unsigned ledCnt = 50;
std::vector<RgbColor> data(ledCnt, RgbColor::BLACK);
LedDeviceWs2801 ledDevice("SpiPi", "/dev/spidev0.0", 20000, 40000);
LedDeviceWs2801 ledDevice("/dev/spidev0.0", 40000);
ledDevice.open();
timespec loopTime;