kihonkai / rogue-code

Automatically exported from code.google.com/p/rogue-code
0 stars 0 forks source link

Problem when using a Servo LIbrary #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello 
There is a problem with the library when using also a Servo library.
It wont compile delivering a message of a array double used on the 2 libraries
To test this issue just test this simple sketch

#include <Tone.h>
#include <Servo.h>

Tone tone1;

void setup()
{
  tone1.begin(13);
  tone1.play(NOTE_A4);
}

void loop()
{
}

The error point to TIMER1_COMPA_vect that is doubled on the same cpp files of 
which library

Thanks

Original issue reported on code.google.com by hdbs...@gmail.com on 22 Aug 2011 at 3:24

GoogleCodeExporter commented 8 years ago
The Tone and Servo libraries both require Timer1 so they cannot be used 
together on a standard Arduino Board. (The would work together on a board with 
more than one 16 bit timer, such as the Mega)

Original comment by memargolis@gmail.com on 5 Sep 2011 at 7:28