Hello all,
I was wondering if there is anyone that has experience implementing delay/timer functions to modify Marlin code, specifically in 'configuration.h"??
I would like to say, after 100000ms after the board being turned on, to change parameters in the Marlin code e.g. stepper motor direction.
Unfortunately, when I try to compile marlin with blank void setup (){} and void loop (){} calls to write a timer function, I get the following compile error:
Arduino: 1.5.3 (Windows NT (unknown)), Board: "Arduino Mega 2560 or Mega ADK"
In file included from /Marlin.h:30,
from BlinkM.cpp:5:
Configuration.h:6: error: previous declaration of 'void loop()' with 'C++' linkage
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:120: error: conflicts with new declaration with 'C' linkage
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Any guidance would be appreciated.
Kind Regards
I was wondering if there is anyone that has experience implementing delay/timer functions to modify Marlin code, specifically in 'configuration.h"??
I would like to say, after 100000ms after the board being turned on, to change parameters in the Marlin code e.g. stepper motor direction.
Unfortunately, when I try to compile marlin with blank void setup (){} and void loop (){} calls to write a timer function, I get the following compile error:
Arduino: 1.5.3 (Windows NT (unknown)), Board: "Arduino Mega 2560 or Mega ADK"
In file included from /Marlin.h:30,
from BlinkM.cpp:5:
Configuration.h:6: error: previous declaration of 'void loop()' with 'C++' linkage
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:120: error: conflicts with new declaration with 'C' linkage
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Any guidance would be appreciated.
Kind Regards