README
Control an Piezo Buzzer using Zetta and bonescript!
Install
Piezo buzzer bonescript driver for zetta
<script type="module">
import zettaBuzzerBonescriptDriver from 'https://cdn.skypack.dev/zetta-buzzer-bonescript-driver';
</script>
gt; npm install zetta-buzzer-bonescript-driver
var zetta = require('zetta');
var Buzzer = require('zetta-buzzer-bonescript-driver');
zetta()
.use(Buzzer, 'P9_14')
.listen(1337)
No arguments. Turns on the buzzer continuously at 500Hz.
This signal conforms to Swedish Standard SS 03 17 11, No. 4 "All clear"
No arguments. Alternately turn the buzzer on at 500Hz for 150 ms then off for 100ms.
The signal conforms to Swedish Standard SS 03 17 11, No. 1 "Imminent Danger".
No arguments. Alternately turns on the buzzer at 560Hz for 100 ms then off for 400ms.
The signal conforms to "French fire sound" NF S 32-001-1975.
No arguments. Turns off the beeping.
No arguments. Beeps the buzzer once.
The sound designs in the buzzer driver follow international standards. Confer with list of alarm sound tones from Siemens.