Merge pull request #411 from STB3/Marlin_w_STB_Board_support
Add STB board support to Marlin (next step towards graphic LCD implementation)
This commit is contained in:
commit
d6ce63c49c
@ -34,6 +34,7 @@
|
|||||||
// 6 = Sanguinololu < 1.2
|
// 6 = Sanguinololu < 1.2
|
||||||
// 62 = Sanguinololu 1.2 and above
|
// 62 = Sanguinololu 1.2 and above
|
||||||
// 63 = Melzi
|
// 63 = Melzi
|
||||||
|
// 64 = STB V1.1
|
||||||
// 7 = Ultimaker
|
// 7 = Ultimaker
|
||||||
// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
|
// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
|
||||||
// 8 = Teensylu
|
// 8 = Teensylu
|
||||||
@ -314,6 +315,7 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
|||||||
|
|
||||||
//LCD and SD support
|
//LCD and SD support
|
||||||
//#define ULTRA_LCD //general lcd support, also 16x2
|
//#define ULTRA_LCD //general lcd support, also 16x2
|
||||||
|
//#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
|
||||||
//#define SDSUPPORT // Enable SD Card Support in Hardware Console
|
//#define SDSUPPORT // Enable SD Card Support in Hardware Console
|
||||||
|
|
||||||
//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
|
//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
|
||||||
@ -322,9 +324,9 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
|||||||
// The RepRapDiscount Smart Controller (white PCB)
|
// The RepRapDiscount Smart Controller (white PCB)
|
||||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||||
//#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
//#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||||
|
|
||||||
// The GADGETS3D G3D LCD/SD Controller (blue PCB)
|
// The GADGETS3D G3D LCD/SD Controller (blue PCB)
|
||||||
// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
|
// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
|
||||||
//#define G3D_PANEL
|
//#define G3D_PANEL
|
||||||
|
|
||||||
//automatic expansion
|
//automatic expansion
|
||||||
@ -347,13 +349,22 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
|
|||||||
// #define NEWPANEL //enable this if you have a click-encoder panel
|
// #define NEWPANEL //enable this if you have a click-encoder panel
|
||||||
#define SDSUPPORT
|
#define SDSUPPORT
|
||||||
#define ULTRA_LCD
|
#define ULTRA_LCD
|
||||||
#define LCD_WIDTH 20
|
#ifdef DOGLCD // Change number of lines to match the DOG graphic display
|
||||||
#define LCD_HEIGHT 4
|
#define LCD_WIDTH 20
|
||||||
|
#define LCD_HEIGHT 5
|
||||||
|
#else
|
||||||
|
#define LCD_WIDTH 20
|
||||||
|
#define LCD_HEIGHT 4
|
||||||
|
#endif
|
||||||
#else //no panel but just lcd
|
#else //no panel but just lcd
|
||||||
#ifdef ULTRA_LCD
|
#ifdef ULTRA_LCD
|
||||||
#define LCD_WIDTH 16
|
#ifdef DOGLCD // Change number of lines to match the 128x64 graphics display
|
||||||
#define LCD_HEIGHT 2
|
#define LCD_WIDTH 20
|
||||||
|
#define LCD_HEIGHT 5
|
||||||
|
#else
|
||||||
|
#define LCD_WIDTH 16
|
||||||
|
#define LCD_HEIGHT 2
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
2929
Marlin/language.h
2929
Marlin/language.h
File diff suppressed because it is too large
Load Diff
@ -644,10 +644,13 @@
|
|||||||
* Sanguinololu pin assignment
|
* Sanguinololu pin assignment
|
||||||
*
|
*
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
|
#if MOTHERBOARD == 64
|
||||||
|
#define STB
|
||||||
|
#endif
|
||||||
#if MOTHERBOARD == 63
|
#if MOTHERBOARD == 63
|
||||||
#define MELZI
|
#define MELZI
|
||||||
#endif
|
#endif
|
||||||
#if MOTHERBOARD == 62 || MOTHERBOARD == 63
|
#if MOTHERBOARD == 62 || MOTHERBOARD == 63 || MOTHERBOARD == 64
|
||||||
#undef MOTHERBOARD
|
#undef MOTHERBOARD
|
||||||
#define MOTHERBOARD 6
|
#define MOTHERBOARD 6
|
||||||
#define SANGUINOLOLU_V_1_2
|
#define SANGUINOLOLU_V_1_2
|
||||||
@ -687,6 +690,10 @@
|
|||||||
#define FAN_PIN 4
|
#define FAN_PIN 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef STB
|
||||||
|
#define FAN_PIN 4
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PS_ON_PIN -1
|
#define PS_ON_PIN -1
|
||||||
#define KILL_PIN -1
|
#define KILL_PIN -1
|
||||||
|
|
||||||
@ -727,13 +734,25 @@
|
|||||||
//we have no buzzer installed
|
//we have no buzzer installed
|
||||||
#define BEEPER -1
|
#define BEEPER -1
|
||||||
//LCD Pins
|
//LCD Pins
|
||||||
#define LCD_PINS_RS 4
|
#ifdef DOGLCD
|
||||||
#define LCD_PINS_ENABLE 17
|
// Pins for DOGM SPI LCD Support
|
||||||
#define LCD_PINS_D4 30
|
#define DOGLCD_A0 30
|
||||||
#define LCD_PINS_D5 29
|
#define DOGLCD_CS 29
|
||||||
#define LCD_PINS_D6 28
|
// GLCD features
|
||||||
#define LCD_PINS_D7 27
|
#define LCD_CONTRAST 1
|
||||||
|
// Uncomment screen orientation
|
||||||
|
// #define LCD_SCREEN_ROT_0
|
||||||
|
// #define LCD_SCREEN_ROT_90
|
||||||
|
#define LCD_SCREEN_ROT_180
|
||||||
|
// #define LCD_SCREEN_ROT_270
|
||||||
|
#else // standard Hitachi LCD controller
|
||||||
|
#define LCD_PINS_RS 4
|
||||||
|
#define LCD_PINS_ENABLE 17
|
||||||
|
#define LCD_PINS_D4 30
|
||||||
|
#define LCD_PINS_D5 29
|
||||||
|
#define LCD_PINS_D6 28
|
||||||
|
#define LCD_PINS_D7 27
|
||||||
|
#endif
|
||||||
//The encoder and click button
|
//The encoder and click button
|
||||||
#define BTN_EN1 11 //must be a hardware interrupt pin
|
#define BTN_EN1 11 //must be a hardware interrupt pin
|
||||||
#define BTN_EN2 10 //must be hardware interrupt pin
|
#define BTN_EN2 10 //must be hardware interrupt pin
|
||||||
|
Loading…
Reference in New Issue
Block a user