Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_FORMBOT_RAPTOR2.h
Go to the documentation of this file.
1
/**
2
* Marlin 3D Printer Firmware
3
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
*
5
* Based on Sprinter and grbl.
6
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*
21
*/
22
#pragma once
23
24
/**
25
* Formbot Raptor 2 pin assignments
26
*/
27
28
#define BOARD_INFO_NAME "Formbot Raptor2"
29
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
30
31
#define FAN_PIN 6
32
33
#ifndef FIL_RUNOUT_PIN
34
#define FIL_RUNOUT_PIN 22
35
#endif
36
37
#include "
pins_FORMBOT_RAPTOR.h
"
38
39
#define GREEDY_PANEL ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD)
40
41
//
42
// M3/M4/M5 - Spindle/Laser Control
43
//
44
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
45
#if !NUM_SERVOS // Try to use servo connector first
46
#define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown!
47
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
48
#define SPINDLE_DIR_PIN 5
49
#elif !GREEDY_PANEL // Try to use AUX2
50
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
51
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
52
#define SPINDLE_DIR_PIN 65
53
#endif
54
#endif
55
56
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
57
#if NUM_SERVOS <= 1 // Try to use servo connector first
58
#define CASE_LIGHT_PIN 6 // Hardware PWM
59
#elif !GREEDY_PANEL // Try to use AUX2
60
#define CASE_LIGHT_PIN 44 // Hardware PWM
61
#endif
62
#endif
63
64
#undef GREEDY_PANEL
65
66
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENA_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
67
#error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
68
#endif
pins_FORMBOT_RAPTOR.h
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
ramps
pins_FORMBOT_RAPTOR2.h
Generated by
1.8.16