Add config option for new board revision

This commit is contained in:
David Ramiro 2019-04-01 21:24:06 +02:00
parent 1bd23dfbd8
commit 2b4c936c1a
No known key found for this signature in database
GPG Key ID: 5B042737EBEEB736
2 changed files with 44 additions and 12 deletions

View File

@ -1949,6 +1949,20 @@
// Only power servos during movement, otherwise leave off to prevent jitter
//#define DEACTIVATE_SERVOS_AFTER_MOVE
/**
* Select your version of the Trigorilla (RAMPS1.4) board here.
*
* 0 = Default Trigorilla
* 1 = Newer Trigorilla v1.1 (first seen late 2018)
*
* The only major difference is a slight change on the servo pin mapping.
* This setting only is relevant if you want to use BLtouch or similar
* mods to be used via servo pins.
* The new version is to be identified by a "TRIGORILLA1.1" lettering
* on the upper left of the PCB silkscreen.
*/
#define TRIGORILLA_VERSION 0
// Enable Anycubic TFT
#define ANYCUBIC_TFT_MODEL
#define ANYCUBIC_FILAMENT_RUNOUT_SENSOR

View File

@ -95,7 +95,8 @@
#define TEMP_BED_PIN 14
// Servos
#ifdef NUM_SERVOS
#if TRIGORILLA_VERSION == 0 // Default Trigorilla
#ifdef NUM_SERVOS
#define SERVO0_PIN 11
#if NUM_SERVOS > 1
@ -109,7 +110,24 @@
#if NUM_SERVOS > 3
#define SERVO3_PIN 4
#endif
#endif
#endif
#else // Trigorilla 1.1
#ifdef NUM_SERVOS
#define SERVO0_PIN 5
#if NUM_SERVOS > 1
#define SERVO1_PIN 4
#endif
#if NUM_SERVOS > 2
#define SERVO2_PIN 11
#endif
#if NUM_SERVOS > 3
#define SERVO3_PIN 6
#endif
#endif
#endif // #if TRIGORILLA_VERSION
#if defined(ANYCUBIC_TFT_MODEL) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER)
#define BEEPER_PIN 31