sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
softTone.h
Go to the documentation of this file.
1 /*
2  * softTone.c:
3  * For that authentic retro sound...
4  * Er... A little experiment to produce tones out of a Pi using
5  * one (or 2) GPIO pins and a piezeo "speaker" element.
6  * (Or a high impedance speaker, but don'y blame me if you blow-up
7  * the GPIO pins!)
8  * Copyright (c) 2012 Gordon Henderson
9  ***********************************************************************
10  * This file is part of wiringPi:
11  * https://projects.drogon.net/raspberry-pi/wiringpi/
12  *
13  * wiringPi is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU Lesser General Public License as
15  * published by the Free Software Foundation, either version 3 of the
16  * License, or (at your option) any later version.
17  *
18  * wiringPi is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with wiringPi.
25  * If not, see <http://www.gnu.org/licenses/>.
26  ***********************************************************************
27  */
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 extern int softToneCreate (int pin) ;
34 extern void softToneStop (int pin) ;
35 extern void softToneWrite (int pin, int freq) ;
36 
37 #ifdef __cplusplus
38 }
39 #endif
int softToneCreate(int pin)
Definition: softTone.c:110
uint16_t freq[18]
Definition: Due_AS7265X_Spectrometer.ino:33
void softToneWrite(int pin, int freq)
Definition: softTone.c:91
void softToneStop(int pin)
Definition: softTone.c:141