PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Circuits
Piezo Beep.c
1
/*
2
Piezo Beep.c
3
4
Beep a piezo speaker connected to Propeller I/O pin P4.
5
6
http://learn.parallax.com/propeller-c-simple-circuits/piezo-beep
7
*/
8
9
#include "
simpletools.h
"
// Include simpletools
10
11
int
main
()
// main function
12
{
13
freqout
(4, 1000, 3000);
// pin, duration, frequency
14
}
freqout
void freqout(int pin, int msTime, int frequency)
Use same cog to send square wave of a certain frequency for a certain amount of time....
Definition:
freqout.c:10
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17