Flying Silicon Sensor
sounds.cpp File Reference

Varios methods to produce the buzzer sounds. More...

#include "pindefs.h"
#include "sounds.h"
#include <Arduino.h>

Go to the source code of this file.

Namespaces

namespace  Sounds
 

Functions

void Sounds::setBuzzer (int pin)
 
static void Sounds::sound (int freq, int ms)
 
static void Sounds::silence (void)
 
void Sounds::beep (int freq, int ms)
 
void Sounds::playMelody (const int melody[])
 
void Sounds::playCharging (void)
 
void Sounds::playBattery (float batPct)
 
void Sounds::playConnect (void)
 
void Sounds::playDisconnect (void)
 
void Sounds::playSwitchOff (void)
 

Variables

static int Sounds::buzzerPin = 0
 Buzzer pin to be used.
 
static const int Sounds::WholeNote = (60000 * 4) / 90
 Duration of a whole note.
 

Detailed Description

Varios methods to produce the buzzer sounds.

Arduino code for Flying Silicon Airspeed/Vario Probe and TotalVario Android app.

For more information refer to: https://flyingsilicon.blogspot.com/
https://totalvario.blogspot.com/

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License http://www.gnu.org/licenses/ for more details.

Definition in file sounds.cpp.