|
35 | 35 |
|
36 | 36 | ### General form of the custom command function
|
37 | 37 |
|
38 |
| -The custom command function have the general form below where parameters are optionals: |
| 38 | +The custom command function have the general form below where parameters are optional: |
39 | 39 |
|
40 | 40 | ```berry
|
41 | 41 | def function_name(cmd, idx, payload, payload_json)
|
@@ -508,8 +508,8 @@ scr = lv.scr_act() # default screean object
|
508 | 508 | f20 = lv.montserrat_font(20) # load embedded Montserrat 20
|
509 | 509 | f28 = lv.montserrat_font(28) # load embedded Montserrat 28
|
510 | 510 |
|
511 |
| -#- Backgroun -# |
512 |
| -scr.set_style_local_bg_color(lv.OBJ_PART_MAIN, lv.STATE_DEFAULT, lv_color(0x000066)) # backgroun in dark blue #000066 |
| 511 | +#- Background -# |
| 512 | +scr.set_style_local_bg_color(lv.OBJ_PART_MAIN, lv.STATE_DEFAULT, lv_color(0x000066)) # background in dark blue #000066 |
513 | 513 |
|
514 | 514 | #- Upper state line -#
|
515 | 515 | stat_line = lv_label(scr)
|
|
633 | 633 |
|
634 | 634 | ## Multi-Zone Heating Controller
|
635 | 635 |
|
636 |
| -This project is a multi-zone heating controller written entirely in berry. It demonstrates the use of the persist module for saving/loading data; the webserver module for creating a custom "Manage Heating" user interface; dynamic loading of HTML from the file system; subscribing to a variety of rule triggers (using tasmota.add_rule); the implementation of custom commands (using tasmota.add_cmnd). It also makes good use of time functionaity (via tasmota.rtc, tasmota.time_dump, tasmota.set_timer and tasmota.strftime). The project also includes an LCD I2C driver for running a basic 20x4 display. The entire driver is implemented using just the tasmota.wire_scan method. |
| 636 | +This project is a multi-zone heating controller written entirely in berry. It demonstrates the use of the persist module for saving/loading data; the webserver module for creating a custom "Manage Heating" user interface; dynamic loading of HTML from the file system; subscribing to a variety of rule triggers (using tasmota.add_rule); the implementation of custom commands (using tasmota.add_cmnd). It also makes good use of time functionality (via `tasmota.rtc`, `tasmota.time_dump`, `tasmota.set_timer` and `tasmota.strftime`). The project also includes an LCD I2C driver for running a basic 20x4 display. The entire driver is implemented using just the `tasmota.wire_scan` method. |
637 | 637 |
|
638 | 638 | [https://github.com/Beormund/Tasmota32-Multi-Zone-Heating-Controller](https://github.com/Beormund/Tasmota32-Multi-Zone-Heating-Controller)
|
639 | 639 |
|
|
696 | 696 |
|
697 | 697 | An H-bridge is an electronic circuit that switches the polarity of a voltage applied to a load. These circuits are often used in robotics and other applications to allow DC motors to run forwards or backwards.
|
698 | 698 |
|
699 |
| -You can typically use 2 PWM channels to pilot a H-bridge, under the condition that both channels are never active at the same time; otherwise you may destroy your device. This means that phasing must be calculated so that one pulse started once the other pulse is inactive, and the sum of both dutys must not exceed 100%. |
| 699 | +You can typically use 2 PWM channels to pilot a H-bridge, under the condition that both channels are never active at the same time; otherwise you may destroy your device. This means that phasing must be calculated so that one pulse started once the other pulse is inactive, and the sum of both duty cycles must not exceed 100%. |
700 | 700 |
|
701 | 701 | The following Berry function ensures appropriate management of H-bridge:
|
702 | 702 |
|
@@ -745,7 +745,7 @@ BRY: Exception> 'value_error' - the sum of duties must not exceed 100%
|
745 | 745 |
|
746 | 746 | This is an example of dumping the content of the internal flash of the ESP32 and write the content in the file system that you can download back to your PC.
|
747 | 747 |
|
748 |
| -The example below dumps the contant of the safeboot partition. |
| 748 | +The example below dumps the content of the safeboot partition. |
749 | 749 |
|
750 | 750 | ```berry
|
751 | 751 | def flash_to_file(filename, addr, len)
|
@@ -792,7 +792,7 @@ This is a Tasmota Berry Script library to greatly simplify the process of exposi
|
792 | 792 |
|
793 | 793 | ## Build MQTT topic string based on FullTopic configuration
|
794 | 794 |
|
795 |
| -This code bit illustrates how you can create a topic string in the form of the FullTopic specification. Details like whech %prefix% you want and what last level of the topic is obviously variable. |
| 795 | +This code bit illustrates how you can create a topic string in the form of the `FullTopic` specification. Details like which `%prefix%` you want and what topic last level are obviously variable. |
796 | 796 |
|
797 | 797 | ```berry
|
798 | 798 | var topic = string.replace(string.replace(
|
|
0 commit comments