Translations:Buzzer/4/en: различия между версиями
Matveevrj (обсуждение | вклад) |
|||
Строка 1: | Строка 1: | ||
The Linux kernel provides a sysfs interface to pwm that accepts a pwm frequency and a duty cycle in '''nanoseconds (10<sup>-9</sup>S)'''! Therefore, for low-level control of the Buzzer, it is necessary to recalculate the desired frequency from kHz to a period in nanoseconds using the formula: | |||
<b> | |||
T(ns) = 1,000,000 / f(kHz) | |||
</b> |
Текущая версия на 20:47, 22 сентября 2022
The Linux kernel provides a sysfs interface to pwm that accepts a pwm frequency and a duty cycle in nanoseconds (10-9S)! Therefore, for low-level control of the Buzzer, it is necessary to recalculate the desired frequency from kHz to a period in nanoseconds using the formula: T(ns) = 1,000,000 / f(kHz)