cleanup: remove ambiled and fix typo (#13)

* cleanup: remove ambiled device

as written at the forum this is no longer supported. All people should move to adalight. They just need to flash a new sketch.

* fix typo
This commit is contained in:
brindosch
2016-06-19 17:18:11 +02:00
committed by GitHub
parent 4533b34606
commit 065e65b8e0
5 changed files with 1 additions and 118 deletions

View File

@@ -23,7 +23,6 @@
#endif
#include "LedDeviceAdalight.h"
#include "LedDeviceAmbiLed.h"
#include "LedDeviceRawHID.h"
#include "LedDeviceLightpack.h"
#include "LedDeviceMultiLightpack.h"
@@ -80,17 +79,6 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
device = deviceAdalightApa102;
}
else if (type == "ambiled")
{
const std::string output = deviceConfig["output"].asString();
const unsigned rate = deviceConfig["rate"].asInt();
const int delay_ms = deviceConfig["delayAfterConnect"].asInt();
LedDeviceAmbiLed* deviceAmbiLed = new LedDeviceAmbiLed(output, rate, delay_ms);
deviceAmbiLed->open();
device = deviceAmbiLed;
}
#ifdef ENABLE_SPIDEV
else if (type == "lpd6803" || type == "ldp6803")
{