Translations:Buzzer/4/en

Материал из Wiren Board
Версия от 20:47, 22 сентября 2022; Matveevrj (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)

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)