inital commit
This commit is contained in:
commit
fede535b95
32 changed files with 2357 additions and 0 deletions
18
src/items/auxitem.cpp
Normal file
18
src/items/auxitem.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "auxitem.h"
|
||||
|
||||
AuxItem::AuxItem(Microcontroller* micro, uint32_t itemIdIn, QString name, uint8_t value, QObject* parent): Item(itemIdIn, name, value, parent), micro_(micro)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void AuxItem::setValue(uint8_t value)
|
||||
{
|
||||
Item::setValue(value);
|
||||
micro_->setAuxPwm(value);
|
||||
}
|
||||
|
||||
void AuxItem::store(QJsonObject &json)
|
||||
{
|
||||
json["Type"] = "Aux";
|
||||
Item::store(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue