let the library handle initialization
This commit is contained in:
parent
f595ac746f
commit
1301947c7a
@ -23,7 +23,7 @@ class DeviceIrRx : public Device {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void DeviceIrRx::deviceSetup() {
|
void DeviceIrRx::deviceSetup() {
|
||||||
//pinMode(pin_irrx, INPUT);
|
// pinMode(pin_irrx, INPUT); // this is done by enableIRIn()
|
||||||
irrecv.enableIRIn();
|
irrecv.enableIRIn();
|
||||||
pinMode(pin_power, OUTPUT);
|
pinMode(pin_power, OUTPUT);
|
||||||
digitalWrite(pin_power, HIGH);
|
digitalWrite(pin_power, HIGH);
|
||||||
|
@ -21,7 +21,8 @@ class DeviceIrTx : public Device {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void DeviceIrTx::deviceSetup() {
|
void DeviceIrTx::deviceSetup() {
|
||||||
pinMode(pin_irtx, OUTPUT);
|
// pinMode(pin_irtx, OUTPUT); // this is done by begin()
|
||||||
|
irsend.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeviceIrTx::irTxHandler(String message) {
|
bool DeviceIrTx::irTxHandler(String message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user