Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - olivere

Pages: [1]
I've got it working:

i've just uncommented the function at:


and it works fine ^^
Core/Cross-platform Library Questions / Using MsTimer2 Arduino-Library
« on: January 17, 2012, 03:13:46 PM »

i tied to use the Arduino library "MsTimer2" on a Wiring S, but i was not able to compile the example code.

Code: [Select]
#include <MsTimer2.h>

// Switch on LED on pin 13 each second

void flash() {
  static boolean output = HIGH;
  digitalWrite(13, output);
  output = !output;

void setup() {
  pinMode(13, OUTPUT);

  MsTimer2::set(500, flash); // 500ms period

void loop() {

the error is:

core.a(WHardwareTimer.cpp.o): In function `__vector_11':
/Applications/Wiring.app/Contents/Resources/Java/cores/AVR8Bit/WHardwareTimer.cpp:114: multiple definition of `__vector_11'
MsTimer2/MsTimer2.cpp.o:/Applications/Wiring.app/Contents/Resources/Java/libraries/MsTimer2/MsTimer2.cpp:147: first defined here

What can i do, to get it working? is Timer2 reserved for something ?

Thank you
Pages: [1]