paolocbr errore arduino #define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN
/// Read a pin
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
/// write to a pin
#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
/// toggle a pin
#define _TOGGLE(IO) do {DIO ## IO ## _RPORT = MASK(DIO ## IO ## _PIN); } while (0)
/// set pin as input
#define _SET_INPUT(IO) do {DIO ## IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)
/// set pin as output
#define _SET_OUTPUT(IO) do {DIO ## IO ## _DDR |= MASK(DIO ## IO ## _PIN); } while (0)
/// check if pin is an input
#define _GET_INPUT(IO) ((DIO ## IO ## _DDR & MASK(DIO ## IO ## _PIN)) == 0)
/// check if pin is an output
Comments
#define MISO_PIN 13
and it can not evaluate the expression correctly. What board are you using? All boards should have a MISO_PIN.
tipo di Arduino utilizzato: Arduino Mega 2560
Also please respond in english, I don't speak italian.
When you are compiling a firmware you must know how you configured the printer - each printer has different settings and you must have configured them - best using our configuration tool which makes it much easier.
Actually I would upload the latest firmware from anycubic if I don't know how to configure a printer - unless of course you have made some modifications so the original will not work any more.