translator, wb_editors
4539
правок
Matveevrj (обсуждение | вклад) (Новая страница: «Working example from python: <syntaxhighlight lang="python"> from wb_common import beeper») |
Matveevrj (обсуждение | вклад) (Новая страница: «beeper.beep(0.5, 2) </syntaxhighlight> All sysfs interface settings are supported (recalculation must be done manually; see section on recalculation).») |
||
Строка 68: | Строка 68: | ||
===Pwm port number for sysfs=== | ===Pwm port number for sysfs=== | ||
The gpio pin is configurable like the PWM output in the dts of the linux kernel. For more details, see [[https://github.com/wirenboard/linux/blob/ef2d87e222b365848fe7262c022ca887b6449432/arch/arm/boot/dts/imx6ul-wirenboard61.dts#L495 on our github]]. | |||
*For WB6.X.X controllers, port number = 0, (for all controllers up to WB6.X.X, port number = 2) | |||
*The port number can be found by running <syntaxhighlight lang="bash">echo $WB_PWM_BUZZER</syntaxhighlight> | |||
</ | In all examples below, we will assume that the pwm port number = 0. | ||
===Working from sysfs=== | |||
<div class="mw-translate-fuzzy"> | <div class="mw-translate-fuzzy"> |