Followup to pin error change
This commit is contained in:
parent
ae07a3e4aa
commit
117fd007a9
3 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@
|
||||||
CORE_PIN ## P ## _CONFIG = PORT_PCR_MUX(1)|PORT_PCR_SRE|PORT_PCR_DSE; \
|
CORE_PIN ## P ## _CONFIG = PORT_PCR_MUX(1)|PORT_PCR_SRE|PORT_PCR_DSE; \
|
||||||
GPIO_BITBAND(CORE_PIN ## P ## _DDRREG , CORE_PIN ## P ## _BIT) = 1; \
|
GPIO_BITBAND(CORE_PIN ## P ## _DDRREG , CORE_PIN ## P ## _BIT) = 1; \
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
||||||
#define _SET_INPUT_PULLUP(P) do{ \
|
#define _SET_INPUT_PULLUP(P) do{ \
|
||||||
CORE_PIN ## P ## _CONFIG = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; \
|
CORE_PIN ## P ## _CONFIG = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; \
|
||||||
GPIO_BITBAND(CORE_PIN ## P ## _DDRREG , CORE_PIN ## P ## _BIT) = 0; \
|
GPIO_BITBAND(CORE_PIN ## P ## _DDRREG , CORE_PIN ## P ## _BIT) = 0; \
|
||||||
|
|
|
@ -96,5 +96,5 @@ const unsigned char custom_start_bmp[] PROGMEM = {
|
||||||
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01110000,
|
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01110000,
|
||||||
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01110000,
|
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01110000,
|
||||||
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
|
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
|
||||||
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000
|
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,7 @@ void GcodeSuite::M42() {
|
||||||
|
|
||||||
const pin_t pin = GET_PIN_MAP_PIN(pin_index);
|
const pin_t pin = GET_PIN_MAP_PIN(pin_index);
|
||||||
|
|
||||||
if (pin_is_protected(pin_number)) return protected_pin_err();
|
if (pin_is_protected(pin)) return protected_pin_err();
|
||||||
|
|
||||||
pinMode(pin, OUTPUT);
|
pinMode(pin, OUTPUT);
|
||||||
digitalWrite(pin, pin_status);
|
digitalWrite(pin, pin_status);
|
||||||
|
|
Reference in a new issue