Go Down

Topic: i need help in arduino with eclipse (Read 979 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy