include dir was exported

This commit is contained in:
2024-05-29 10:53:49 +02:00
parent 8e2cc11ad9
commit 45162202c8
6 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#ifndef LIBUSBDEVICE_H
#define LIBUSBDEVICE_H
#include "interfaces/iusbdevice.h"
#include "iusbdevice.h"
struct libusb_context;
struct libusb_device_handle;

View File

@@ -1,51 +0,0 @@
#ifndef NOOLITE_H
#define NOOLITE_H
#include <vector>
#include <optional>
#include "interfaces/iusbdevice.h"
namespace noolitelib
{
enum Command
{
Off = 0,
DecraseBrightnes,
On,
IncreaseBrightnes,
Switch,
InvertBrightnes,
Set,
CallScenario,
SaveScenario,
Unbind,
StopColorSelection,
Bind = 15,
// Commands for SD111-180 only
ColorSelection,
ColorSwitch,
ModeSwitch,
EffectSpeed
};
using Params = std::vector<int>;
class Noolite
{
public:
Noolite(IUsbDevice *device = nullptr);
~Noolite();
bool sendCommand(unsigned char channel, Command command, const Params &params = Params());
private:
IUsbDevice *m_device;
std::optional<Data> composeCommand(unsigned char channel, Command command, const Params &params) const;
};
}
#endif // NOOLITE_H