Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Displaylist.h
- #if FEATURE_CONTROLLER == CONTROLLER_RADDS
- #undef SDSS
- #define SDSS 10
- #undef SPI_PIN
- #define SPI_PIN 77
- #undef SPI_CHAN
- #define SPI_CHAN 0
- #define UI_HAS_KEYS 1
- #define UI_HAS_BACK_KEY 1
- #define UI_DISPLAY_TYPE DISPLAY_4BIT
- #define UI_DISPLAY_CHARSET 1
- #define BEEPER_TYPE 1
- #define UI_COLS 20
- #define UI_ROWS 4
- #undef BEEPER_PIN
- #define BEEPER_PIN 41
- #define UI_DISPLAY_RS_PIN 42
- #define UI_DISPLAY_RW_PIN -1
- #define UI_DISPLAY_ENABLE_PIN 43
- #define UI_DISPLAY_D0_PIN 44
- #define UI_DISPLAY_D1_PIN 45
- #define UI_DISPLAY_D2_PIN 46
- #define UI_DISPLAY_D3_PIN 47
- #define UI_DISPLAY_D4_PIN 44
- #define UI_DISPLAY_D5_PIN 45
- #define UI_DISPLAY_D6_PIN 46
- #define UI_DISPLAY_D7_PIN 47
- #define UI_ENCODER_A 50
- #define UI_ENCODER_B 52
- #define UI_ENCODER_CLICK 48
- #define UI_RESET_PIN -1
- #define UI_DELAYPERCHAR 50
- #define UI_INVERT_MENU_DIRECTION 0
- #define UI_BUTTON_BACK 71
- #ifdef UI_MAIN
- void uiInitKeys() {
- UI_KEYS_INIT_CLICKENCODER_LOW(UI_ENCODER_A, UI_ENCODER_B); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
- UI_KEYS_INIT_BUTTON_LOW(UI_ENCODER_CLICK); // push button, connects gnd to pin
- UI_KEYS_INIT_BUTTON_LOW(UI_BUTTON_BACK);
- }
- void uiCheckKeys(uint16_t &action) {
- UI_KEYS_CLICKENCODER_LOW(UI_ENCODER_A, UI_ENCODER_B); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
- UI_KEYS_BUTTON_LOW(UI_ENCODER_CLICK, UI_ACTION_OK); // push button, connects gnd to pin
- UI_KEYS_BUTTON_LOW(UI_BUTTON_BACK, UI_ACTION_BACK);
- }
- inline void uiCheckSlowEncoder() {}
- void uiCheckSlowKeys(uint16_t &action) {}
- #endif
- #endif // Controller 7
- ----------------------------------------------------------------------------------------------------------------------------------
- #elif MOTHERBOARD == 402 // RADDS
- #undef SDCARDDETECT
- #define SDCARDDETECT 14 // sd card detect as shown on drawing
- //#undef SDSS
- //#define SDSS 4
- //#define SPI_PIN 87
- //#define SPI_CHAN 1
- /*#define SDSS 10
- #undef SPI_PIN
- #define SPI_PIN 77
- #undef SPI_CHAN
- #define SPI_CHAN 0
- #undef SDSUPPORT
- #define SDSUPPORT 0 // sd card does not work reliable due to spi sharing
- */
- #undef BEEPER_PIN
- #define BEEPER_PIN 41
- // Hardware SPI creates artifacts on display, so we use software SPI
- #undef U8GLIB_ST7565_NHD_C2832_HW_SPI
- #define U8GLIB_ST7565_NHD_C2832_SW_SPI
- // MOSI 43
- #define UI_DISPLAY_ENABLE_PIN 31
- //#define UI_DISPLAY_ENABLE_PIN 75
- //76 // SCK pin
- #define UI_DISPLAY_D4_PIN 33 //44
- // Display A0 => LCD RS
- #define UI_DISPLAY_D5_PIN 42
- // Display CS => CS0 //4 //10
- #define UI_DISPLAY_RS_PIN 35 //10
- #define UI_ENCODER_A 50
- #define UI_ENCODER_B 52
- #define UI_ENCODER_CLICK 48
- #define UI_RESET_PIN -1
- #define RED_BLUE_STATUS_LEDS
- // PWM2 Pin
- #define RED_STATUS_LED 6
- // PWM1 Pin
- #define BLUE_STATUS_LED 5
- ======================================================================================================================================
- ======================================================================================================================================
- Pins.h
- // RADDS Board
- // http://www.dr-henschke.de/RADDS_due.html
- #if MOTHERBOARD == 402
- #ifndef __SAM3X8E__
- #error Oops! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu.
- #endif
- #define KNOWN_BOARD
- #define CPU_ARCH ARCH_ARM
- /*****************************************************************
- * Arduino Due Pin Assignments
- ******************************************************************/
- #define ORIG_X_STEP_PIN 24
- #define ORIG_X_DIR_PIN 23
- #define ORIG_X_MIN_PIN 28
- #define ORIG_X_MAX_PIN 34
- #define ORIG_X_ENABLE_PIN 26
- #define ORIG_Y_STEP_PIN 17
- #define ORIG_Y_DIR_PIN 16
- #define ORIG_Y_MIN_PIN 30
- #define ORIG_Y_MAX_PIN 36
- #define ORIG_Y_ENABLE_PIN 22
- #define ORIG_Z_STEP_PIN 2
- #define ORIG_Z_DIR_PIN 3
- #define ORIG_Z_MIN_PIN 32
- #define ORIG_Z_MAX_PIN 38
- #define ORIG_Z_ENABLE_PIN 15
- // Note that on the Due pin A0 on the board is channel 2 on the ARM chip
- #define HEATER_0_PIN 13
- // Due analog pin #54
- #define TEMP_0_PIN 7
- #define HEATER_1_PIN 7
- #define TEMP_1_PIN 3
- // Due analog pin #58
- #define HEATER_2_PIN 12
- // Due analog pin #55
- #define TEMP_2_PIN 6
- #define HEATER_3_PIN 11
- // Due analog pin #56
- #define TEMP_3_PIN 5
- // Due analog pin #57
- #define TEMP_4_PIN 4
- // Due analog pin #59 = A5 -> AD 2
- #define THERMOCOUPLE_0_PIN 2
- // There are no more analog pins freely available.
- // You can use direction and enable pin from extruder 0 socket as they are also
- // analog pins. Then you need to move the stepper driver to a different socket.
- // Direction pin of extruder 0
- #define THERMOCOUPLE_1_PIN 1
- // Step pin of extruder 0
- #define THERMOCOUPLE_2_PIN 0
- // Enable pin of extruder 0
- #define THERMOCOUPLE_3_PIN 10
- #define ORIG_E0_STEP_PIN 61
- #define ORIG_E0_DIR_PIN 60
- #define ORIG_E0_ENABLE_PIN 62
- #define ORIG_E1_STEP_PIN 64
- #define ORIG_E1_DIR_PIN 63
- #define ORIG_E1_ENABLE_PIN 65
- #define ORIG_E2_STEP_PIN 51
- #define ORIG_E2_DIR_PIN 53
- #define ORIG_E2_ENABLE_PIN 49
- // Extra driver on extension board
- // Might require pin 66 high for some drivers!
- #define ORIG_E3_STEP_PIN 35
- #define ORIG_E3_DIR_PIN 33
- #define ORIG_E3_ENABLE_PIN 37
- // Extra driver on extension port
- // Might require pin 25 high for some drivers!
- #define ORIG_E4_STEP_PIN 29
- #define ORIG_E4_DIR_PIN 27
- #define ORIG_E4_ENABLE_PIN 31
- #define ORIG_E5_STEP_PIN 67
- #define ORIG_E5_DIR_PIN 66
- #define ORIG_E5_ENABLE_PIN 68
- #define EXTENSION_BOARD_MS1 67
- #define EXTENSION_BOARD_MS2 68
- #define EXTENSION_BOARD_MS3 69
- // 66 -> not connected
- // 25 -> not connected
- // To set microstepping on startup set START_GCODE to e.g.
- // "M42 P67 S255\nM42 P68 S255\nM42 P69 S255"
- #define SDSUPPORT 1
- #define SDPOWER -1
- // 4,10,52 if using HW SPI.
- #define SDSS 4
- #define ORIG_SDCARDDETECT 14
- #define SDCARDDETECTINVERTED 0
- #define LED_PIN -1
- #define ORIG_FAN_PIN 9
- #define ORIG_FAN2_PIN 8
- #define ORIG_PS_ON_PIN 40
- #define KILL_PIN -1
- #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
- // 20 or 70
- #define SDA_PIN 20
- // 21 or 71
- #define SCL_PIN 21
- // Servo pins: 5,6 und 39
- #define E0_PINS ORIG_E0_STEP_PIN,ORIG_E0_DIR_PIN,ORIG_E0_ENABLE_PIN,
- #define E1_PINS ORIG_E1_STEP_PIN,ORIG_E1_DIR_PIN,ORIG_E1_ENABLE_PIN,
- #define E2_PINS ORIG_E2_STEP_PIN,ORIG_E2_DIR_PIN,ORIG_E2_ENABLE_PIN,
- #define E3_PINS ORIG_E3_STEP_PIN,ORIG_E3_DIR_PIN,ORIG_E3_ENABLE_PIN,
- #define E4_PINS ORIG_E4_STEP_PIN,ORIG_E4_DIR_PIN,ORIG_E4_ENABLE_PIN,
- #define E5_PINS ORIG_E5_STEP_PIN,ORIG_E5_DIR_PIN,ORIG_E5_ENABLE_PIN,
- #define TWI_CLOCK_FREQ 400000
- // see eeprom device data sheet for the following values these are for 24xx256
- #define EEPROM_SERIAL_ADDR 0x50 // 7 bit i2c address (without R/W bit)
- #define EEPROM_PAGE_SIZE 64 // page write buffer size
- #define EEPROM_PAGE_WRITE_TIME 7 // page write time in milliseconds (docs say 5ms but that is too short)
- // specify size of eeprom address register
- // TWI_MMR_IADRSZ_1_BYTE for 1 byte, or TWI_MMR_IADRSZ_2_BYTE for 2 byte
- #define EEPROM_ADDRSZ_BYTES TWI_MMR_IADRSZ_2_BYTE
- #define EEPROM_AVAILABLE 1
- #endif
Add Comment
Please, Sign In to add comment