|
|
@ -88,7 +88,7 @@
|
|
|
|
* Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
|
|
|
|
* Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(__AVR_ATmega1284P__)
|
|
|
|
#ifndef __AVR_ATmega1284P__
|
|
|
|
#error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu."
|
|
|
|
#error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -155,36 +155,38 @@
|
|
|
|
#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
|
|
|
|
#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
|
|
|
|
#define LCD_SDSS 28
|
|
|
|
#define LCD_SDSS 28
|
|
|
|
#if ENABLED(ADC_KEYPAD)
|
|
|
|
#if ENABLED(ADC_KEYPAD)
|
|
|
|
#define SERVO0_PIN 27 // free for BLTouch/3D-Touch
|
|
|
|
#define SERVO0_PIN 27 // free for BLTouch/3D-Touch
|
|
|
|
#define LCD_PINS_RS 28
|
|
|
|
#define LCD_PINS_RS 28
|
|
|
|
#define LCD_PINS_ENABLE 29
|
|
|
|
#define LCD_PINS_ENABLE 29
|
|
|
|
#define LCD_PINS_D4 10
|
|
|
|
#define LCD_PINS_D4 10
|
|
|
|
#define LCD_PINS_D5 11
|
|
|
|
#define LCD_PINS_D5 11
|
|
|
|
#define LCD_PINS_D6 16
|
|
|
|
#define LCD_PINS_D6 16
|
|
|
|
#define LCD_PINS_D7 17
|
|
|
|
#define LCD_PINS_D7 17
|
|
|
|
#define BTN_EN1 -1
|
|
|
|
#define BTN_EN1 -1
|
|
|
|
#define BTN_EN2 -1
|
|
|
|
#define BTN_EN2 -1
|
|
|
|
#define BTN_ENC -1
|
|
|
|
#define BTN_ENC -1
|
|
|
|
#define ADC_KEYPAD_PIN 1
|
|
|
|
#define ADC_KEYPAD_PIN 1
|
|
|
|
#define ENCODER_FEEDRATE_DEADZONE 2
|
|
|
|
#define ENCODER_FEEDRATE_DEADZONE 2
|
|
|
|
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(ANET_FULL_GRAPHICS_LCD)
|
|
|
|
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(ANET_FULL_GRAPHICS_LCD)
|
|
|
|
// Pin definitions for the Anet A6 Full Graphics display and the RepRapDiscount Full Graphics
|
|
|
|
// Pin definitions for the Anet A6 Full Graphics display and the RepRapDiscount Full Graphics
|
|
|
|
// display using an adapter board // https://go.aisler.net/benlye/anet-lcd-adapter/pcb
|
|
|
|
// display using an adapter board // https://go.aisler.net/benlye/anet-lcd-adapter/pcb
|
|
|
|
// See below for alternative pin definitions for use with https://www.thingiverse.com/thing:2103748
|
|
|
|
// See below for alternative pin definitions for use with https://www.thingiverse.com/thing:2103748
|
|
|
|
#define SERVO0_PIN 29 // free for BLTouch/3D-Touch
|
|
|
|
#define SERVO0_PIN 29 // free for BLTouch/3D-Touch
|
|
|
|
#define BEEPER_PIN 17
|
|
|
|
#define BEEPER_PIN 17
|
|
|
|
#define LCD_PINS_RS 27
|
|
|
|
#define LCD_PINS_RS 27
|
|
|
|
#define LCD_PINS_ENABLE 28
|
|
|
|
#define LCD_PINS_ENABLE 28
|
|
|
|
#define LCD_PINS_D4 30
|
|
|
|
#define LCD_PINS_D4 30
|
|
|
|
#define BTN_EN1 11
|
|
|
|
#define BTN_EN1 11
|
|
|
|
#define BTN_EN2 10
|
|
|
|
#define BTN_EN2 10
|
|
|
|
#define BTN_ENC 16
|
|
|
|
#define BTN_ENC 16
|
|
|
|
#define ST7920_DELAY_1 DELAY_0_NOP
|
|
|
|
#define ST7920_DELAY_1 DELAY_0_NOP
|
|
|
|
#define ST7920_DELAY_2 DELAY_1_NOP
|
|
|
|
#define ST7920_DELAY_2 DELAY_1_NOP
|
|
|
|
#define ST7920_DELAY_3 DELAY_2_NOP
|
|
|
|
#define ST7920_DELAY_3 DELAY_2_NOP
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 4
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 4
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define SERVO0_PIN 27
|
|
|
|
#endif // ULTRA_LCD && NEWPANEL
|
|
|
|
#endif // ULTRA_LCD && NEWPANEL
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|