Skip to content

Commit 97fd747

Browse files
committed
ESP32 support / examples
1 parent 8fc7d8b commit 97fd747

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/OpenThermGatewayMonitor_Demo/OpenThermGatewayMonitor_Demo.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ http://ihormelnyk.com
99
#include <Arduino.h>
1010
#include <OpenTherm.h>
1111

12-
const int mInPin = 2; //for Arduino, 4 for ESP8266
13-
const int mOutPin = 4; //for Arduino, 5 for ESP8266
12+
const int mInPin = 2; //for Arduino, 4 for ESP8266 (D2), 21 for ESP32
13+
const int mOutPin = 4; //for Arduino, 5 for ESP8266 (D1), 22 for ESP32
1414

15-
const int sInPin = 3; //for Arduino, 12 for ESP8266
16-
const int sOutPin = 5; //for Arduino, 13 for ESP8266
15+
const int sInPin = 3; //for Arduino, 12 for ESP8266 (D6), 19 for ESP32
16+
const int sOutPin = 5; //for Arduino, 13 for ESP8266 (D7), 23 for ESP32
1717

1818
OpenTherm mOT(mInPin, mOutPin);
1919
OpenTherm sOT(sInPin, sOutPin, true);

examples/OpenThermMaster_Demo/OpenThermMaster_Demo.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ but since GPIO6-GPIO11 are typically used to interface with the flash memory ICs
2323
#include <Arduino.h>
2424
#include <OpenTherm.h>
2525

26-
const int inPin = 2; //for Arduino, 4 for ESP8266
27-
const int outPin = 3; //for Arduino, 5 for ESP8266
26+
const int inPin = 2; //for Arduino, 4 for ESP8266 (D2), 21 for ESP32
27+
const int outPin = 3; //for Arduino, 5 for ESP8266 (D1), 22 for ESP32
2828
OpenTherm ot(inPin, outPin);
2929

3030
void ICACHE_RAM_ATTR handleInterrupt() {

examples/OpenThermSlave_Demo/OpenThermSlave_Demo.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http://ihormelnyk.com
88
#include <Arduino.h>
99
#include <OpenTherm.h>
1010

11-
const int inPin = 2; //for Arduino, 12 for ESP8266
12-
const int outPin = 3; //for Arduino, 13 for ESP8266
11+
const int inPin = 2; //for Arduino, 12 for ESP8266 (D6), 19 for ESP32
12+
const int outPin = 3; //for Arduino, 13 for ESP8266 (D7), 23 for ESP32
1313
OpenTherm ot(inPin, outPin, true);
1414

1515
void ICACHE_RAM_ATTR handleInterrupt() {

0 commit comments

Comments
 (0)