Go Down

Topic: i need help in arduino with eclipse (Read 939 times) previous topic - next topic

waledmm

#include "uno.h"
#include <MsTimer2.h>



void flash() {
  static boolean output = HIGH;

  digitalWrite(13, output);
  output = !output;
}

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

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

void loop()
{

}


this is the error
C:\Users\Diablo\workspace\uno\Release/../uno.cpp:17: undefined reference to `MsTimer2::set(unsigned long, void (*)())'
C:\Users\Diablo\workspace\uno\Release/../uno.cpp:18: undefined reference to `MsTimer2::start()'

Jantje

Hi
you  probably havn't linked in the arduino library.
Have you considered to use the arduino eclipse plugin? eclipse.baeyens.it
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Go Up