История
3 октября 2022
23 сентября 2022
Нет описания правки
+3
Нет описания правки
−7
Нет описания правки
+3
Нет описания правки
Нет описания правки
Нет описания правки
−5
Нет описания правки
−25
Нет описания правки
−41
Новая страница: «{{DISPLAYTITLE:Buzzer)}}»
−5
Обновление для соответствия новой версии исходной страницы.
+1
Нет описания правки
+25
22 сентября 2022
Новая страница: «300px|thumb|right| Buzzer control In the web interface of the controller, buzzer control is available in the ''"Devices"'' tab. Parameter ''"Frequency"'' - sound frequency in Hz. ''"Volume"'' - volume (in conventional units, linear scale). The settings are saved when the controller is rebooted.»
+590
Новая страница: «beeper.beep(0.5, 2) </syntaxhighlight> All sysfs interface settings are supported (recalculation must be done manually; see section on recalculation).»
+31
Новая страница: «Working example from python: <syntaxhighlight lang="python"> from wb_common import beeper»
−175
Новая страница: «==Control from python==»
+431
Новая страница: «==Management from web interface==»
+3163
28 мая 2019
Новая страница: «[https://github.com/contactless/wirenboard/tree/master/examples/beeper '''Example''']»
−5
Новая страница: «Shutdown: <pre> echo 0 > /sys/class/pwm/pwmchip0/pwm2/enable </pre>»
−12
Новая страница: «Enable PWM output: <pre> echo 1 > /sys/class/pwm/pwmchip0/pwm2/enable </pre>»
−21
Новая страница: «<pre> echo 125000 > /sys/class/pwm/pwmchip0/pwm2/duty_cycle #set duty_cycle to 125 000 NS, i.e. in half of the period </pre>»
−41
Новая страница: «Setting the duty_cycle (the duration of the high state) in nanoseconds. Maximum volume is reached at duty_cycle = period / 2»
−95
Новая страница: «<pre> echo 250000 > /sys/class/pwm/pwmchip0/pwm2/period # set the period to 250 000 NS, ie 250mks, which corresponds to a frequency of 4kHz </pre>»
−53
Новая страница: «Sets the period in nanoseconds. The conversion from frequency(from kilohertz per period in nanoseconds is produced by the formula: <b> T(ns) = 1 000 000 / f(kHz)…»
−87
Нет описания правки
−3
Новая страница: «After that, the /sys/class/pwm/pwmchip0/pwm2 directory appears»
−30
Новая страница: «Exporting port to sysfs: <pre> echo 2 > /sys/class/pwm/pwmchip0/export </pre>»
−11
Новая страница: «PWM is a rectangular pulse, the core interface allows you to adjust the pulse rate and fill factor. Coeffecient filling effect on the sound volume.»
−160
Новая страница: «The sound emitter is connected to the PWM output in the Wiren Board Smart Home controller and is controlled via the sysfs kernel interface. The PWM port number is 2.»
−37
Новая страница: «Buzzer»
+1832