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

 
Строка 1: Строка 1:
After that, the /sys/class/pwm/pwmchip0/pwm2 folder appears
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>