File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 77 image : auto-fix.svg
88---
99
10+ {{< anchor "automation" >}}
11+
1012Automations are a very powerful aspect of ESPHome; they allow you to easily perform actions given some condition(s).
1113
1214When you want your ESPHome device to respond to its environment, you use an automation. Here are some examples:
Original file line number Diff line number Diff line change @@ -75,34 +75,24 @@ display:
7575- **chip_lines_style** (*Optional*): How are the lines in Multiline Mode connected? Possible values are `zigzag` and `snake`. Defaults to `snake`
7676- **flip_x** (*Optional*, boolean): Flip the horizontal axis on the screen. Defaults to `false`.
7777
78- {{< anchor "display-max7219digit_actions" >}}
79-
8078# # Actions
8179
8280The following actions are replicas of the LAMBDA functions shown in the next section.
8381
84- {{< anchor "display-max7219digit_actions_invert_on_off>" >}}
85-
8682# ## `MAX7219.invert_on` & `MAX7219.invert_off` Action
8783
8884This action `MAX7219.invert_on` will invert the display. So background pixels are on and texts pixels are
8985off. `MAX7219.invert_off` sets the display back to normal. The background pixels are only set at the next update, the pixels drawn in
9086the various function like print, line, etc. are directly influenced by the invert command.
9187
92- {{< anchor "display-max7219digit_actions_turn_on_off" >}}
93-
9488# ## `MAX7219.turn_on` & `MAX7219.turn_off` Action
9589
9690The display can be switched on and off "dynamically" with the actions `MAX7219.turn_on` & `MAX7219.turn_off`.
9791
98- {{< anchor "display-max7219digit_actions_reverse_off" >}}
99-
10092# # `MAX7219.reverse_on` & `MAX7219.reverse_off` Action
10193
10294With this actions you can reverse the display direction from left to right to right to left.
10395
104- {{< anchor "display-max7219digit_actions_intensity" >}}
105-
10696# # `MAX7219.intensity` Action
10797
10898The intensity of the screen can be set "dynamically" within the lambda code with the following command : it.intensity(`0` .. `15` ).
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def process_markdown_file(file_path):
3232 continue
3333
3434 # Shortcodes
35- shortcode_match = re .search (r'{ {<\s*anchor\s* "([^" ]+)"\s*>}}' , line )
35+ shortcode_match = re .search (r'\{\ {<\s*anchor\s+ "([^\s> ]+)"\s*>}}' , line )
3636 if shortcode_match :
3737 anchor_id = shortcode_match .group (1 )
3838 # Look ahead for heading
You can’t perform that action at this time.
0 commit comments