GPIO pins on controller

Notepad++ is as much as I’m willing to commit to at work :smiley:

1 Like

Additionally, the web version can’t do proper c symbols, so it’s really no better than notepad++

So did you look more at it ?
In the derivativve version of Marlin that Snapmaker is using, they have aaded another file in the module, Stepper_indirection.
under this section, I feel these sets of lines need to be understood,

I just want to configure one of the GPIO pins from Add-on 1 as OUtput. but it doesnt say here how.

Should I be using :

instead of :
image

Could you please help me here?

I did not. Had an electrical panel failure last night and had to do some rewiring.

Dangit @scyto fine I’ll use the online vscode obviously superior to notepad++ version since find all seems to work much faster than notepad++ at least. Shame find references doesn’t work since the c/c++ extension won’t run in the browser.

I’ll take a look here in a bit.

Oh you’re referencing pin 13 for some reason.

PE13 is not pin 13. Change 13 to PE13.

/* Pin aliases: these give the GPIO port/bit for each pin as an
 * enum. These are optional, but recommended. They make it easier to
 * write code using low-level GPIO functionality. */
enum {
PA0,PA1,PA2,PA3,PA4,PA5,PA6,PA7,PA8,PA9,PA10,PA11,PA12,PA13,PA14,PA15,
PB0,PB1,PB2,PB3,PB4,PB5,PB6,PB7,PB8,PB9,PB10,PB11,PB12,PB13,PB14,PB15,
PC0,PC1,PC2,PC3,PC4,PC5,PC6,PC7,PC8,PC9,PC10,PC11,PC12,PC13,PC14,PC15,
PD0,PD1,PD2,PD3,PD4,PD5,PD6,PD7,PD8,PD9,PD10,PD11,PD12,PD13,PD14,PD15,
PE0,PE1,PE2,PE3,PE4,PE5,PE6,PE7,PE8,PE9,PE10,PE11,PE12,PE13,PE14,PE15,
};

PE13 is 77

13 is actually PA13

If for some reason that still has issues I see snapmaker uses the WRITE macro rather than extDigitalWrite for some reason, maybe there’s something there to look into

Hi,

Sorry I sent you the old version, I did use PE13 and not 13. I think you are right, its because of the WRITE. I can try again but after my controller responds. MAybe we can work on it after the controller issue ? Please :disappointed_relieved: