relay: [#9] remove en pins from relaydevice
This commit is contained in:
parent
07a6937077
commit
c468a0d828
@ -10,14 +10,11 @@
|
||||
#include "Log.h"
|
||||
|
||||
// TODO Remove en pins
|
||||
RelayDevice::RelayDevice(uint8_t en_pin,
|
||||
uint8_t en_port,
|
||||
uint8_t pha_pin,
|
||||
RelayDevice::RelayDevice(uint8_t pha_pin,
|
||||
uint8_t pha_port,
|
||||
uint8_t relay_device_index
|
||||
)
|
||||
{
|
||||
en = new DigitalIoPin(en_pin, en_port, false);
|
||||
pha = new DigitalIoPin(pha_pin, pha_port, false);
|
||||
LOG_DEBUG("Creating RelayDevice");
|
||||
}
|
||||
|
||||
@ -14,14 +14,11 @@
|
||||
|
||||
class RelayDevice {
|
||||
public:
|
||||
RelayDevice(uint8_t en_pin,
|
||||
uint8_t en_port,
|
||||
uint8_t pha_pin,
|
||||
RelayDevice(uint8_t pha_pin,
|
||||
uint8_t pha_port,
|
||||
uint8_t relay_device_index);
|
||||
virtual ~RelayDevice();
|
||||
private:
|
||||
DigitalIoPin * en;
|
||||
DigitalIoPin * pha;
|
||||
};
|
||||
|
||||
@ -32,8 +29,8 @@ public:
|
||||
void taskFunction();
|
||||
private:
|
||||
ThreadCommon::QueueManager* _qm;
|
||||
RelayDevice relays [2] = {{0, 23, 0, 24, 0},
|
||||
{0, 25, 0, 26, 1}};
|
||||
RelayDevice relays [2] = {{0, 24, 0},
|
||||
{0, 26, 1}};
|
||||
|
||||
void parseEvent(Event * d);
|
||||
int8_t setpoint, ext_temp;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user