2019-06-03 23:49:19 -04:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 08:00:57 -06:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2019-06-03 23:49:19 -04:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2019-06-03 23:49:19 -04:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2020-07-23 05:20:14 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2019-06-03 23:49:19 -04:00
|
|
|
*
|
|
|
|
*/
|
2019-07-04 22:44:12 -05:00
|
|
|
#pragma once
|
2019-06-03 23:49:19 -04:00
|
|
|
|
|
|
|
#if HOTENDS > 2 || E_STEPPERS > 2
|
2020-10-30 02:02:29 +01:00
|
|
|
#error "Dagoma3D F5 supports only 2 hotends / E-steppers. Comment out this line to continue."
|
2019-06-03 23:49:19 -04:00
|
|
|
#endif
|
|
|
|
|
2020-10-30 02:02:29 +01:00
|
|
|
#define BOARD_INFO_NAME "Dagoma3D F5"
|
2019-06-03 23:49:19 -04:00
|
|
|
|
2020-10-30 02:02:29 +01:00
|
|
|
//
|
|
|
|
// Endstops
|
|
|
|
//
|
2020-11-07 16:53:37 -06:00
|
|
|
#define X_STOP_PIN 2
|
|
|
|
#define Y_STOP_PIN 3
|
|
|
|
#define Z_STOP_PIN 15
|
2020-10-30 02:02:29 +01:00
|
|
|
|
2020-11-07 16:53:37 -06:00
|
|
|
#define FIL_RUNOUT_PIN 39
|
2020-10-30 02:02:29 +01:00
|
|
|
#if EXTRUDERS > 1
|
2020-11-07 16:53:37 -06:00
|
|
|
#define FIL_RUNOUT2_PIN 14
|
2020-10-30 02:02:29 +01:00
|
|
|
#endif
|
2019-06-03 23:49:19 -04:00
|
|
|
|
2021-08-28 15:27:52 -05:00
|
|
|
// Alter timing for graphical display
|
2021-10-03 06:12:51 +03:00
|
|
|
#if IS_U8GLIB_ST7920
|
2021-09-05 17:21:25 -07:00
|
|
|
#define BOARD_ST7920_DELAY_1 0
|
|
|
|
#define BOARD_ST7920_DELAY_2 250
|
|
|
|
#define BOARD_ST7920_DELAY_3 250
|
2020-04-16 03:24:41 -05:00
|
|
|
#endif
|
2019-06-03 23:49:19 -04:00
|
|
|
|
2019-06-05 21:32:10 -05:00
|
|
|
//
|
2020-10-30 02:02:29 +01:00
|
|
|
// DAC steppers
|
|
|
|
//
|
2021-07-09 17:09:58 -05:00
|
|
|
#define HAS_MOTOR_CURRENT_DAC 1
|
2020-10-30 02:02:29 +01:00
|
|
|
|
|
|
|
#define DAC_STEPPER_ORDER { 0, 1, 2, 3 }
|
|
|
|
|
|
|
|
#define DAC_STEPPER_SENSE 0.11
|
|
|
|
#define DAC_STEPPER_ADDRESS 0
|
|
|
|
#define DAC_STEPPER_MAX 4096
|
|
|
|
#define DAC_STEPPER_VREF 1
|
|
|
|
#define DAC_STEPPER_GAIN 0
|
|
|
|
#define DAC_OR_ADDRESS 0x00
|
|
|
|
|
|
|
|
//
|
|
|
|
// Import default RAMPS 1.4 pins
|
2019-06-05 21:32:10 -05:00
|
|
|
//
|
2019-06-03 23:49:19 -04:00
|
|
|
#include "pins_RAMPS.h"
|