Closed cjryker06 closed 6 years ago
Which board are you using?
Mega 2560 with Ramps 1.4 on top of it.
So, BOARD_RAMPS_EFB
or something similar ?
It seems that these pins are in fact defined for VIKI2
+ RAMPS in Marlin 1.1.0-RC
and 1.1.0-RCBugFix
. Are you using an older version of Marlin?
The pins are specified as:
#define STAT_LED_RED 32
#define STAT_LED_BLUE 35
It has my Ramps properly established. I am using Marlin 1.1.0 RC7 working on migrating to RC bugfix. I assigned the pins according to the document from Panucatt for the Viki 2. Everything else seems to compile fine outside of the status led colors.
As you can see, the pins are defined in the RAMPS pins file. So it's odd that you are seeing that compiler error.
https://github.com/MarlinFirmware/Marlin/blob/RC/Marlin/pins_RAMPS.h#L267-L270
And indeed, starting with 1.1.0-RC7 and simply enabling VIKI2
and TEMP_STAT_LEDS
I see no error. Is it possible you have more than one display type enabled? Please post your configuration files.
It appears my pins don't match what you put, but I believe I changed them according to the setup.
#define STAT_LED_RED 39
#define STAT_LED_BLUE 37
I'll keep you posted, but I finally found the default reprap discount was also enabled. For some reason I didn't see the issue and that being linked.
So far it has compiled fine, but has not been tested.
I didn't see the issue and that being linked.
The pins are defined based on which controller is enabled (i.e., the first one it sees as enabled). The latest RCBugFix
sanity checks to catch errors like that.
For now I would Iike to stick with stable builds, so to be safe should I proceed with the pins changed according to the guide or default Marlin?
Be aware: stable builds may still have bugs. "Stable" just means they won't be getting changed (or fixed).
What do you mean by "default Marlin"?
Should you proceed with the pins changed? Just use whatever works.
I meant the default pin layout for Marlin before I changed the Pins.h according to the Viki 2 guide. I just don't want to ruin an LCD.
You can use the newest Marlin (RCBugFix
) pins files as a guide for how to set the Viki 2 pins in an older version of Marlin. I'm not sure how much they might have changed.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hey guys, I was directed here by the users on the Robo forums. I am trying to setup my LCD and all is well until it gets to the LED color portion. I get a compile error stating a line in the code is not declared in scope. I'm very new to Arduino sketching. It compiles fine as //#define TEMP_STAT_LEDS, but with it uncommented, it does this: