aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WProgram.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-12-29 20:57:07 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-12-29 20:57:07 +0000
commitc75b10af737b39408fa332e0a61504461cdde99f (patch)
tree9122d38caf428e420d11b89959032b769c0a10c5 /cores/arduino/WProgram.h
parent791bab8c7fa16383591d1c28b74f372235501793 (diff)
Adding tone() and noTone() functions, using Brett Hagman's Tone library.
Diffstat (limited to 'cores/arduino/WProgram.h')
-rwxr-xr-xcores/arduino/WProgram.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cores/arduino/WProgram.h b/cores/arduino/WProgram.h
index fc14923..f5d3e29 100755
--- a/cores/arduino/WProgram.h
+++ b/cores/arduino/WProgram.h
@@ -19,6 +19,9 @@ uint16_t makeWord(byte h, byte l);
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
+void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
+void noTone(uint8_t _pin);
+
// WMath prototypes
long random(long);
long random(long, long);