Refactoring st3 (untested/uncomplete)

This commit is contained in:
2020-11-17 00:02:33 +03:00
parent d81308ad4d
commit 963a934f51
10 changed files with 239 additions and 129 deletions

View File

@@ -45,6 +45,7 @@ e-mail anklimov@gmail.com
#include "modules/out_motor.h"
#include "modules/out_modbus.h"
#include "modules/out_dmx.h"
#include "modules/out_pwm.h"
short modbusBusy = 0;
extern aJsonObject *pollingItem;
@@ -124,9 +125,14 @@ void Item::Parse() {
itemExt = aJson.getArrayItem(itemArr, I_EXT);
switch (itemType)
{
case CH_PWM:
driver = new out_pwm (this);
break;
#ifndef DMX_DISABLE
case CH_RGBW:
case CH_RGB:
case CH_DIMMER:
driver = new out_dmx (this);
// debugSerial<<F("SPILED driver created")<<endl;
break;