hi, thank you to mr Brett Hagman of Rogue Robotics
for the library and the explanation,
tone library:
http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentationI have put togher this code, to generate 1Hz, 10 Hz, and 50Hz as test,
#include <Tone.h>
Tone freq1;
Tone freq2;
void setup()
{
freq1.begin(11);
freq2.begin(8);
}
void loop()
{
freq2.play(1, 6000);
delay (2000);
freq2.play(10, 6000);
delay (2000);
freq2.play(50, 6000);
delay (2000);
}
the freq2 is the timer of 16 bits
" The timers are allocated sequentially when you declare the Tone objects. The second timer is Timer 1, which is a 16 bit timer."
Ok, very nice, thank you again Brett for the library and the explanation,
now to do my project !!! hahaha
