ihormelnyk / arduino_opentherm_controller

Arduino OpenTherm Controller
10 stars 9 forks source link

How the code works #3

Closed micBona closed 3 years ago

micBona commented 3 years ago

Hi all, I'm trying to write an openthem controller for ESP32 without arduino libraries and in C (no CPP), and this sketch is really useful for my goal. Reading a code, there is one thing that I cannot understand (99% for a lack of my knowledge). When you want to send a bit (1 or 0) , the manchester encoding method is used:

ihormelnyk commented 3 years ago

Hi @micBona , It depends on a schematic, in my case '1' on the controller output pin opens the transistor and sets the line to the low level. That is why levels are inversed in the code.

micBona commented 3 years ago

Thank you for your prompt reply and for the information. Now it is clear. I'll close the issue.