Update gpio.md

This commit is contained in:
Maxim Devaev 2020-09-10 16:21:00 +03:00 committed by GitHub
parent 80cb155ecc
commit 9b4047dfb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -94,10 +94,13 @@ Setting up GPIO is quite complex. The interface is divided into several layers f
- ["#Relay #2:", "relay2,Boop 2.0"] - ["#Relay #2:", "relay2,Boop 2.0"]
``` ```
This will be rendered as:
<img src="../img/gpio_menu.png" alt="drawing" /> <img src="../img/gpio_menu.png" alt="drawing" />
Here the rules: Here the rules:
- Text starting with the `#` symbol will be a label.
- To place a port in a cell, just put its name from the scheme.
- The inputs are displayed as round LEDs. - The inputs are displayed as round LEDs.
- The outputs are displayed as a switch AND a button. - The outputs are displayed as a switch AND a button.
- If the switch mode is disabled, only the I button will be displayed. If ripple is turned off, only the switch will be shown. - If the switch mode is disabled, only a button will be displayed. If pulse is disabled, only a switch will be shown.
- To rename the output button, write some its identifier using comma like "relay1,My cool relay". - To rename the output button, write some its identifier using comma like `"relay1,My cool relay"`.