Skip to content

Commit 55e3c8d

Browse files
authored
Update Berry-Cookbook.md
Typos
1 parent e03115b commit 55e3c8d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/Berry-Cookbook.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ brgc
3535
3636
### General form of the custom command function
3737
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:
3939
4040
```berry
4141
def function_name(cmd, idx, payload, payload_json)
@@ -508,8 +508,8 @@ scr = lv.scr_act() # default screean object
508508
f20 = lv.montserrat_font(20) # load embedded Montserrat 20
509509
f28 = lv.montserrat_font(28) # load embedded Montserrat 28
510510
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
513513
514514
#- Upper state line -#
515515
stat_line = lv_label(scr)
@@ -633,7 +633,7 @@ end
633633

634634
## Multi-Zone Heating Controller
635635

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.
637637

638638
[https://github.com/Beormund/Tasmota32-Multi-Zone-Heating-Controller](https://github.com/Beormund/Tasmota32-Multi-Zone-Heating-Controller)
639639

@@ -696,7 +696,7 @@ end
696696

697697
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.
698698

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%.
700700

701701
The following Berry function ensures appropriate management of H-bridge:
702702

@@ -745,7 +745,7 @@ BRY: Exception> 'value_error' - the sum of duties must not exceed 100%
745745

746746
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.
747747

748-
The example below dumps the contant of the safeboot partition.
748+
The example below dumps the content of the safeboot partition.
749749

750750
```berry
751751
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
792792

793793
## Build MQTT topic string based on FullTopic configuration
794794

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.
796796

797797
```berry
798798
var topic = string.replace(string.replace(

0 commit comments

Comments
 (0)