Перейти к содержанию

Навигация

Translations:Buzzer/3/en: различия между версиями

Нет описания правки
(Новая страница: «Exporting port to sysfs: <pre> echo 2 > /sys/class/pwm/pwmchip0/export </pre>»)
 
 
Строка 1: Строка 1:
Exporting port to sysfs:
In the context of buzzer control, we are interested in 2 PWM parameters:
<pre>
* Duty cycle - affects the volume of the sound. Usually, it is considered as a percentage of the signal period.
echo 2 > /sys/class/pwm/pwmchip0/export
* PWM frequency (frequency) - affects the pitch (the higher the frequency, the higher the sound). The unit that is the reciprocal of the signal period.
</pre>
translator, wb_editors
4433

правки