Tweak Sanguinololu-related pins files

This commit is contained in:
Scott Lahteine 2017-08-23 18:20:40 -05:00
parent 11a724d8fc
commit 356af7dcb0
7 changed files with 31 additions and 43 deletions

View File

@ -26,5 +26,4 @@
#define BOARD_NAME "Azteeg X1" #define BOARD_NAME "Azteeg X1"
#define SANGUINOLOLU_V_1_2 #include "pins_SANGUINOLOLU_12.h"
#include "pins_SANGUINOLOLU_11.h"

View File

@ -25,10 +25,5 @@
*/ */
#define BOARD_NAME "Melzi" #define BOARD_NAME "Melzi"
#define IS_MELZI
#ifdef __AVR_ATmega1284P__ #include "pins_SANGUINOLOLU_12.h"
#define LARGE_FLASH true
#endif
#define SANGUINOLOLU_V_1_2
#include "pins_SANGUINOLOLU_11.h"

View File

@ -25,17 +25,12 @@
*/ */
#define BOARD_NAME "Melzi (Creality)" #define BOARD_NAME "Melzi (Creality)"
#define IS_MELZI
#ifdef __AVR_ATmega1284P__ #include "pins_SANGUINOLOLU_12.h"
#define LARGE_FLASH true
#endif
// For the stock CR-10 use the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER // For the stock CR-10 use the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
// option for the display in Configuration.h // option for the display in Configuration.h
#define SANGUINOLOLU_V_1_2
#include "pins_SANGUINOLOLU_11.h"
#undef LCD_SDSS #undef LCD_SDSS
#undef LED_PIN #undef LED_PIN

View File

@ -25,10 +25,5 @@
*/ */
#define BOARD_NAME "Melzi (ATmega1284)" #define BOARD_NAME "Melzi (ATmega1284)"
#define IS_MELZI
#ifdef __AVR_ATmega1284P__ #include "pins_SANGUINOLOLU_12.h"
#define LARGE_FLASH true
#endif
#define SANGUINOLOLU_V_1_2
#include "pins_SANGUINOLOLU_11.h"

View File

@ -59,7 +59,9 @@
#define BOARD_NAME "Sanguinololu <1.2" #define BOARD_NAME "Sanguinololu <1.2"
#endif #endif
#define IS_MELZI (MB(MELZI) || MB(MELZI_MAKR3D) || MB(MELZI_CREALITY)) #ifdef __AVR_ATmega1284P__
#define LARGE_FLASH true
#endif
// //
// Limit Switches // Limit Switches
@ -116,7 +118,7 @@
#endif #endif
#if MB(AZTEEG_X1) || MB(STB_11) || IS_MELZI #if MB(AZTEEG_X1) || MB(STB_11) || ENABLED(IS_MELZI)
#define FAN_PIN 4 // Works for Panelolu2 too #define FAN_PIN 4 // Works for Panelolu2 too
#endif #endif
@ -133,7 +135,7 @@
//#define SDSS 24 //#define SDSS 24
#define SDSS 31 #define SDSS 31
#if IS_MELZI #if ENABLED(IS_MELZI)
#define LED_PIN 27 #define LED_PIN 27
#elif MB(STB_11) #elif MB(STB_11)
#define LCD_BACKLIGHT_PIN 17 // LCD backlight LED #define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
@ -143,6 +145,15 @@
#define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM - see if IO Header is available #define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM - see if IO Header is available
#endif #endif
/**
* Sanguinololu 1.4 AUX pins:
*
* PWM TX1 RX1 SDA SCL
* 12V 5V D12 D11 D10 D17 D16
* GND GND D31 D30 D29 D28 D27
* A4 A3 A2 A1 A0
*/
// //
// LCD / Controller // LCD / Controller
// //
@ -152,7 +163,7 @@
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0 #if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
#if IS_MELZI // Melzi board #if ENABLED(IS_MELZI)
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select #define LCD_PINS_RS 30 // CS chip select /SS chip slave select
#define LCD_PINS_ENABLE 29 // SID (MOSI) #define LCD_PINS_ENABLE 29 // SID (MOSI)
#define LCD_PINS_D4 17 // SCK (CLK) clock #define LCD_PINS_D4 17 // SCK (CLK) clock
@ -160,7 +171,7 @@
// Marlin so this can be used for BEEPER_PIN. You can use this pin // Marlin so this can be used for BEEPER_PIN. You can use this pin
// with M42 instead of BEEPER_PIN. // with M42 instead of BEEPER_PIN.
#define BEEPER_PIN 27 #define BEEPER_PIN 27
#else // Sanguinololu 1.3 #else // Sanguinololu >=1.3
#define LCD_PINS_RS 4 #define LCD_PINS_RS 4
#define LCD_PINS_ENABLE 17 #define LCD_PINS_ENABLE 17
#define LCD_PINS_D4 30 #define LCD_PINS_D4 30
@ -210,7 +221,7 @@
#if ENABLED(LCD_I2C_PANELOLU2) #if ENABLED(LCD_I2C_PANELOLU2)
#if IS_MELZI #if ENABLED(IS_MELZI)
#define BTN_ENC 29 #define BTN_ENC 29
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi #define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
#else #else

View File

@ -27,15 +27,14 @@
* *
* AZTEEG_X1 * AZTEEG_X1
* MELZI * MELZI
* MELZI_CREALITY
* MELZI_MAKR3D * MELZI_MAKR3D
* SANGUINOLOLU_12 * SANGUINOLOLU_12
* STB_11 * STB_11
*/ */
#ifndef BOARD_NAME
#define BOARD_NAME "Sanguinololu 1.2" #define BOARD_NAME "Sanguinololu 1.2"
#ifdef __AVR_ATmega1284P__
#define LARGE_FLASH true
#endif #endif
#define SANGUINOLOLU_V_1_2 #define SANGUINOLOLU_V_1_2

View File

@ -25,10 +25,4 @@
*/ */
#define BOARD_NAME "STB V1.1" #define BOARD_NAME "STB V1.1"
#include "pins_SANGUINOLOLU_12.h"
#ifdef __AVR_ATmega1284P__
#define LARGE_FLASH true
#endif
#define SANGUINOLOLU_V_1_2
#include "pins_SANGUINOLOLU_11.h"