Merge pull request #6932 from thinkyhead/bf_zrib_2.0
Support for ZRIB v2.0 Control Board
This commit is contained in:
commit
e2c3695e11
|
@ -95,6 +95,7 @@
|
|||
#define BOARD_BAM_DICE 401 // 2PrintBeta BAM&DICE with STK drivers
|
||||
#define BOARD_BAM_DICE_DUE 402 // 2PrintBeta BAM&DICE Due with STK drivers
|
||||
#define BOARD_BQ_ZUM_MEGA_3D 503 // bq ZUM Mega 3D
|
||||
#define BOARD_ZRIB_V20 504 // zrib V2.0 control board (Chinese knock off RAMPS replica)
|
||||
|
||||
#define MB(board) (MOTHERBOARD==BOARD_##board)
|
||||
|
||||
|
|
|
@ -174,6 +174,8 @@
|
|||
#include "pins_MKS_13.h"
|
||||
#elif MB(SAINSMART_2IN1)
|
||||
#include "pins_SAINSMART_2IN1.h"
|
||||
#elif MB(ZRIB_V20)
|
||||
#include "pins_ZRIB_V20.h"
|
||||
#else
|
||||
#error "Unknown MOTHERBOARD value set in Configuration.h"
|
||||
#endif
|
||||
|
|
|
@ -111,9 +111,12 @@
|
|||
//
|
||||
// Other board specific pins
|
||||
//
|
||||
#define FILWIDTH_PIN 37
|
||||
#define LED_PIN 13
|
||||
#define SPINDLE_ENABLE_PIN 4
|
||||
#define FAN_PIN 3
|
||||
#define PS_ON_PIN 45
|
||||
#define KILL_PIN 46
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 37 // should be Analog Input (0-15)
|
||||
#endif
|
||||
|
|
|
@ -99,7 +99,10 @@
|
|||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 26
|
||||
#define FILWIDTH_PIN 2 // Analog Input
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 2 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
|
|
@ -102,7 +102,10 @@
|
|||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 20 // Teensylu pin mapping
|
||||
#define FILWIDTH_PIN 2 // Analog Input
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 2 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
|
|
@ -135,10 +135,13 @@
|
|||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define FILWIDTH_PIN 3 // Analog Input
|
||||
#define PS_ON_PIN 4
|
||||
#define CASE_LIGHT_PIN 46
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 3 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
|
|
@ -196,8 +196,9 @@
|
|||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
|
||||
// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
|
||||
#define FILWIDTH_PIN 5 // Analog Input
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 5 // Analog Input on AUX2
|
||||
#endif
|
||||
|
||||
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
|
||||
#define FIL_RUNOUT_PIN 4
|
||||
|
|
|
@ -118,7 +118,10 @@
|
|||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 4
|
||||
#define FILWIDTH_PIN 3 // Analog Input
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 3 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
|
39
Marlin/pins_ZRIB_V20.h
Normal file
39
Marlin/pins_ZRIB_V20.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* 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
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* ZRIB V2.0 pin assignments
|
||||
*/
|
||||
|
||||
#define ZRIB_V20_D6_PIN 6
|
||||
#define ZRIB_V20_D9_PIN 9
|
||||
#define RAMPS_D9_PIN ZRIB_V20_D6_PIN
|
||||
#define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D9_PIN
|
||||
#define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D9_PIN
|
||||
#define ORIG_E2_AUTO_FAN_PIN ZRIB_V20_D9_PIN
|
||||
#define ORIG_E3_AUTO_FAN_PIN ZRIB_V20_D9_PIN
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 11 // Analog Input
|
||||
#endif
|
||||
|
||||
#include "pins_MKS_13.h"
|
Loading…
Reference in a new issue