Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Using timers/delays in the firmware to change "configuration" parameters (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>