ericosur / arduino-tone Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/arduino-tone
Automatically exported from code.google.com/p/arduino-tone
What steps will reproduce the problem?
1. Install Arduino v 17
2. Un-zip Tone in hardware/libraries
3. Open Arduino and type:
#include <Tone.h>
void setup() {}
void loop() {}
4. Press Verify
What is the expected output? What do you see instead?
Result:
arduino-0017\hardware\libraries\Tone\Tone.cpp:431: error: 'TIMSK1' was not
declared in this scope
What version of the product are you using? On what operating system?
OS: Windows XP Professional
Original issue reported on code.google.com by [email protected]
on 20 Sep 2009 at 9:31
I think it would be nice to have a NOTE_PAUSE or NOTE_SILENT "note" so when
you could write note_player.play(NOTE_PAUSE, 100) to have a non-blocking
pause in the melody. It could be used like this:
int melody[] = { NOTE_C4, NOTE_D4, NOTE_E4, NOTE_PAUSE,
NOTE_G4, NOTE_PAUSE, NOTE_A4, NOTE_PAUSE };
int melody_duration[] = { 100, 100, 100, 50,
100, 300, 50, 250, };
int melody_length = sizeof(melody) / 2; // Melody length, for looping.
void loop()
{
play_melody();
do_something_else();
}
void play_melody()
{
if(!(note_player.isPlaying())) // if the last tone has stopped
{
if(i<melody_length)
{
tone_maker.play(melody[position], melody_duration[position]);
position++;
}
else
{
position = 0;
}
}
}
I could try to add it myself, but I don't have time this week, and I've
never tried to write or modify arduino libraries before... But maybe I'll
give it a try next week if it hasn't been implemented by then.
Thanks for a great library!
Regards Martin
Original issue reported on code.google.com by [email protected]
on 11 Nov 2009 at 6:46
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.