Fix gpio.pulse admonition

This commit is contained in:
Marcel Stör 2018-02-15 07:10:20 +01:00
parent f05bbb136f
commit 0bf035aadc
1 changed files with 4 additions and 3 deletions

View File

@ -197,12 +197,13 @@ One of the uses for this is to generate bipolar impulse for driving clock moveme
second, and a pulse on Pin 2 on the odd second. `:getstate` and `:adjust` can be used to keep the pulse synchronized to the second, and a pulse on Pin 2 on the odd second. `:getstate` and `:adjust` can be used to keep the pulse synchronized to the
RTC clock (that is itself synchronized with NTP). RTC clock (that is itself synchronized with NTP).
!!! Configuration !!! Attention
This feature is only available if `LUA_USE_MODULES_GPIO_PULSE` is defined at build time.
This sub module is disabled by default. Uncomment `LUA_USE_MODULES_GPIO_PULSE` in `app/include/user_modules.h` before building the firmware to enable it.
## gpio.pulse.build ## gpio.pulse.build
This builds the `gpio.pulse` object from the supplied argument -- which is a table as described below. This builds the `gpio.pulse` object from the supplied argument (a table as described below).
#### Syntax #### Syntax
`gpio.pulse.build(table)` `gpio.pulse.build(table)`