gavrilov-i / OpenTherm

Opentherm library for Arduino
GNU General Public License v3.0
27 stars 10 forks source link

Example sketch? #1

Open avenantsoftware opened 9 years ago

avenantsoftware commented 9 years ago

Could you perhaps add an example sketch like most arduino libraries have, with how it works exactly, like for example setting the desired temperature and switching the heater on and off based on a temperature sensor reading? The link is to a russian website even with google translate it is hard to understand lol

gavrilov-i commented 8 years ago

Unfortunately I can't test examples right now. Link on russian site has working arduino sketch, you can remove parts which represents LCD, encoder, button and menu, so it will become very simple. In readme you can see low level functions to send and receive messages to/from boiler, so you can write your own logic, how to communicate with it. Also there is high level functions, which make life easier - update(), update(n), just call them once in second. First will update information, second is specific - for updating specified ID.