123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- #ifndef __AVR_ATmega1284P__
- #error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected in the 'Tools -> Boards' menu and ATmega1284P selected in 'Tools -> Processor' menu."
- #endif
- #ifndef BOARD_NAME
- #define BOARD_NAME "Anet"
- #endif
- #define X_STOP_PIN 18
- #define Y_STOP_PIN 19
- #define Z_STOP_PIN 20
- #define X_STEP_PIN 15
- #define X_DIR_PIN 21
- #define X_ENABLE_PIN 14
- #define Y_STEP_PIN 22
- #define Y_DIR_PIN 23
- #define Y_ENABLE_PIN 14
- #define Z_STEP_PIN 3
- #define Z_DIR_PIN 2
- #define Z_ENABLE_PIN 26
- #define E0_STEP_PIN 1
- #define E0_DIR_PIN 0
- #define E0_ENABLE_PIN 14
- #define TEMP_0_PIN 7
- #define TEMP_BED_PIN 6
- #define HEATER_0_PIN 13
- #define HEATER_BED_PIN 12
- #ifndef FAN_PIN
- #define FAN_PIN 4
- #endif
- #define SDSS 31
- #define LED_PIN -1
- #if ENABLED(ULTRA_LCD)
- #define LCD_SDSS 28
- #if ENABLED(ADC_KEYPAD)
- #define SERVO0_PIN 27
- #define LCD_PINS_RS 28
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 10
- #define LCD_PINS_D5 11
- #define LCD_PINS_D6 16
- #define LCD_PINS_D7 17
- #define BTN_EN1 -1
- #define BTN_EN2 -1
- #define BTN_ENC -1
- #define ADC_KEYPAD_PIN 1
- #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(ANET_FULL_GRAPHICS_LCD)
-
-
-
- #define SERVO0_PIN 29
- #define BEEPER_PIN 17
- #define LCD_PINS_RS 27
- #define LCD_PINS_ENABLE 28
- #define LCD_PINS_D4 30
- #define BTN_EN1 11
- #define BTN_EN2 10
- #define BTN_ENC 16
- #ifndef ST7920_DELAY_1
- #define ST7920_DELAY_1 DELAY_NS(0)
- #endif
- #ifndef ST7920_DELAY_2
- #define ST7920_DELAY_2 DELAY_NS(63)
- #endif
- #ifndef ST7920_DELAY_3
- #define ST7920_DELAY_3 DELAY_NS(125)
- #endif
- #define STD_ENCODER_PULSES_PER_STEP 4
- #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
- #endif
- #else
- #define SERVO0_PIN 27
- #endif
|