Tests for Noolite::sendCommand was added
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user