From c75b10af737b39408fa332e0a61504461cdde99f Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 29 Dec 2009 20:57:07 +0000 Subject: Adding tone() and noTone() functions, using Brett Hagman's Tone library. --- cores/arduino/WProgram.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cores/arduino/WProgram.h') 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); -- cgit v1.2.3-18-g5258