Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
bsp_buzz.cpp
00001 #include "bsp_buzz.h" 00002 00003 00004 void Buzz::enable() 00005 { 00006 buzzer.enable(BUZZER_FREQUENCY_HZ); 00007 buzzer.enableChannel(0, pwm_pin); 00008 buzzer.setDuty(0,0.5f); 00009 00010 state = true; 00011 } 00012 00013 void Buzz::disable() 00014 { 00015 buzzer.enable(0); 00016 buzzer.setDuty(0, 0); 00017 buzzer.disable(); 00018 00019 state = false; 00020 }
Generated on Wed Jul 13 2022 10:29:29 by
1.7.2
