You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
989 B

#include "model/Console.h"
#include <model/DataSender.h>
Console::Console() :
_dual(0x1D, static_cast<char>(0x82))
{
}
//********************************************************************************
void Console::injectDataSender(DataSender *sender)
{
_dataSender = sender;
}
//********************************************************************************
void Console::test()
{
QByteArray arr;
arr.append(0x01);
arr.append(0x03);
arr.append(0x05);
_dataSender->send(arr);
}
//********************************************************************************
void Console::pressDual()
{
auto arr = _dual.press();
_dataSender->send(arr);
}
//********************************************************************************
void Console::releaseDual()
{
auto arr = _dual.release();
_dataSender->send(arr);
}
//********************************************************************************