Viki 2 Pins from Manual
I added in the pins into the new board files for the Azteeg X3, X3 Pro, Printrboard, and Rambo. I'm sure it can be added for others too but these are the manual specified pins. Just like many things here though, I can't test for the boards other than the Azteeg X3 Pro. Hopefully it works smoothly for everyone who happens on this nifty display. :)
This commit is contained in:
		@@ -4,13 +4,33 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "pins_RAMPS_13.h"
 | 
					#include "pins_RAMPS_13.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#undef FAN_PIN
 | 
					 | 
				
			||||||
#define FAN_PIN            9 // (Sprinter config)
 | 
					#define FAN_PIN            9 // (Sprinter config)
 | 
				
			||||||
 | 
					 | 
				
			||||||
#undef HEATER_1_PIN
 | 
					 | 
				
			||||||
#define HEATER_1_PIN       -1
 | 
					#define HEATER_1_PIN       -1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//LCD Pins//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(VIKI2) || defined(miniVIKI)
 | 
				
			||||||
 | 
					 #define BEEPER 33
 | 
				
			||||||
 | 
					 // Pins for DOGM SPI LCD Support
 | 
				
			||||||
 | 
					 #define DOGLCD_A0  31 
 | 
				
			||||||
 | 
					 #define DOGLCD_CS  32 
 | 
				
			||||||
 | 
					 #define LCD_SCREEN_ROT_180
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 //The encoder and click button 
 | 
				
			||||||
 | 
					 #define BTN_EN1 22 
 | 
				
			||||||
 | 
					 #define BTN_EN2 7
 | 
				
			||||||
 | 
					 #define BTN_ENC 12  //the click switch
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 #define SDSS 53
 | 
				
			||||||
 | 
					 #define SDCARDDETECT -1 // Pin 49 if using display sd interface   
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
  #ifdef TEMP_STAT_LEDS
 | 
					  #ifdef TEMP_STAT_LEDS
 | 
				
			||||||
 | 
					   #define STAT_LED_RED 64
 | 
				
			||||||
 | 
					   #define STAT_LED_BLUE 63
 | 
				
			||||||
 | 
					  #endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#elif define TEMP_STAT_LEDS
 | 
				
			||||||
  #define STAT_LED_RED       6
 | 
					  #define STAT_LED_RED       6
 | 
				
			||||||
  #define STAT_LED_BLUE     11
 | 
					  #define STAT_LED_BLUE     11
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -88,3 +88,26 @@
 | 
				
			|||||||
    #endif
 | 
					    #endif
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//LCD Pins//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(VIKI2) || defined(miniVIKI)
 | 
				
			||||||
 | 
					 #define BEEPER 33
 | 
				
			||||||
 | 
					 // Pins for DOGM SPI LCD Support
 | 
				
			||||||
 | 
					 #define DOGLCD_A0  44
 | 
				
			||||||
 | 
					 #define DOGLCD_CS  45
 | 
				
			||||||
 | 
					 #define LCD_SCREEN_ROT_180
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 //The encoder and click button
 | 
				
			||||||
 | 
					 #define BTN_EN1 22
 | 
				
			||||||
 | 
					 #define BTN_EN2 7
 | 
				
			||||||
 | 
					 #define BTN_ENC 39  //the click switch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 #define SDSS 53
 | 
				
			||||||
 | 
					 #define SDCARDDETECT 49
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 #define KILL_PIN 31
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 #define STAT_LED_RED       32
 | 
				
			||||||
 | 
					 #define STAT_LED_BLUE      35
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,6 +59,8 @@
 | 
				
			|||||||
#define TEMP_1_PIN         -1
 | 
					#define TEMP_1_PIN         -1
 | 
				
			||||||
#define TEMP_2_PIN         -1
 | 
					#define TEMP_2_PIN         -1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					////LCD Pin Setup////
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define SDPOWER            -1
 | 
					#define SDPOWER            -1
 | 
				
			||||||
#define SDSS                8
 | 
					#define SDSS                8
 | 
				
			||||||
#define LED_PIN            -1
 | 
					#define LED_PIN            -1
 | 
				
			||||||
@@ -86,3 +88,24 @@
 | 
				
			|||||||
  //not connected to a pin
 | 
					  //not connected to a pin
 | 
				
			||||||
  #define SDCARDDETECT -1    
 | 
					  #define SDCARDDETECT -1    
 | 
				
			||||||
#endif // ULTRA_LCD && NEWPANEL
 | 
					#endif // ULTRA_LCD && NEWPANEL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(VIKI2) || defined(miniVIKI)
 | 
				
			||||||
 | 
					 #define BEEPER 32 //FastIO
 | 
				
			||||||
 | 
					 // Pins for DOGM SPI LCD Support
 | 
				
			||||||
 | 
					 #define DOGLCD_A0  42 //Non-FastIO
 | 
				
			||||||
 | 
					 #define DOGLCD_CS  43 //Non-FastIO
 | 
				
			||||||
 | 
					 #define LCD_SCREEN_ROT_180
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 //The encoder and click button (FastIO Pins)
 | 
				
			||||||
 | 
					 #define BTN_EN1 26 
 | 
				
			||||||
 | 
					 #define BTN_EN2 27
 | 
				
			||||||
 | 
					 #define BTN_ENC 47  //the click switch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 #define SDSS 45
 | 
				
			||||||
 | 
					 #define SDCARDDETECT -1 // FastIO (Manual says 72 I'm not certain cause I can't test) 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 #ifdef TEMP_STAT_LEDS
 | 
				
			||||||
 | 
					  #define STAT_LED_RED      12 //Non-FastIO
 | 
				
			||||||
 | 
					  #define STAT_LED_BLUE     10 //Non-FastIO
 | 
				
			||||||
 | 
					 #endif  
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -148,6 +148,26 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#endif // ULTRA_LCD
 | 
					#endif // ULTRA_LCD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(VIKI2) || defined(miniVIKI)
 | 
				
			||||||
 | 
					 #define BEEPER 44
 | 
				
			||||||
 | 
					 // Pins for DOGM SPI LCD Support
 | 
				
			||||||
 | 
					 #define DOGLCD_A0  70 
 | 
				
			||||||
 | 
					 #define DOGLCD_CS  71 
 | 
				
			||||||
 | 
					 #define LCD_SCREEN_ROT_180
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					 //The encoder and click button 
 | 
				
			||||||
 | 
					 #define BTN_EN1 85 
 | 
				
			||||||
 | 
					 #define BTN_EN2 84
 | 
				
			||||||
 | 
					 #define BTN_ENC 83  //the click switch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 #define SDCARDDETECT -1 // Pin 72 if using easy adapter board   
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  #ifdef TEMP_STAT_LEDS
 | 
				
			||||||
 | 
					   #define STAT_LED_RED      22
 | 
				
			||||||
 | 
					   #define STAT_LED_BLUE     32 
 | 
				
			||||||
 | 
					  #endif
 | 
				
			||||||
 | 
					#endif // VIKI2/miniVIKI
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef FILAMENT_SENSOR
 | 
					#ifdef FILAMENT_SENSOR
 | 
				
			||||||
  //Filip added pin for Filament sensor analog input 
 | 
					  //Filip added pin for Filament sensor analog input 
 | 
				
			||||||
  #define FILWIDTH_PIN        3
 | 
					  #define FILWIDTH_PIN        3
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user