Pages: [1]   Go Down
Author Topic: i need help in arduino with eclipse  (Read 912 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

#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()'
Logged

Belgium
Offline Offline
Edison Member
*
Karma: 68
Posts: 1918
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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 -

Pages: [1]   Go Up
Jump to: