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

Материал из Wiren Board
(Новая страница: «Setting the duty_cycle (the duration of the high state) in nanoseconds. Maximum volume is reached at duty_cycle = period / 2»)
 
 
Строка 1: Строка 1:
Setting the duty_cycle (the duration of the high state) in nanoseconds. Maximum volume is reached at duty_cycle = period / 2
*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.

Текущая версия на 20:47, 22 сентября 2022

Определение сообщения (Buzzer)
*Для контроллеров WB6.X.X номер порта = 0,(для всех контроллеров до WB6.X.X номер порта = 2)
*Номер порта можно узнать, выполнив команду <syntaxhighlight lang="bash">echo $WB_PWM_BUZZER</syntaxhighlight> 
Во всех примерах далее будем считать, что номер pwm-порта = 0.
  • 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
    echo $WB_PWM_BUZZER
    

In all examples below, we will assume that the pwm port number = 0.