Tests for Noolite::sendCommand was added

This commit is contained in:
2024-05-29 08:51:38 +02:00
parent d5973cd0ee
commit 7055206fb1
7 changed files with 261 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
#ifndef NOOLITE_H
#define NOOLITE_H
#include <vector>
#include "interfaces/iusbdevice.h"
namespace noolitelib
@@ -27,12 +29,16 @@ enum Command
EffectSpeed
};
using Params = std::vector<int>;
class Noolite
{
public:
Noolite(IUsbDevice *device = nullptr);
~Noolite();
bool sendCommand(int channel, Command command, Params params = Params());
private:
IUsbDevice *m_device;
};