Sfoglia il codice sorgente

Merge pull request #485 from Banjer/Panelolu2_Melzi

Add Panelolu2 support for Melzi
ErikZalm 12 anni fa
parent
commit
567291e734
1 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 10
    1
      Marlin/pins.h

+ 10
- 1
Marlin/pins.h Vedi File

@@ -735,7 +735,16 @@
735 735
      //The encoder and click button
736 736
      #define BTN_EN1 11  
737 737
      #define BTN_EN2 10 
738
-     #define BTN_ENC 16  //the switch
738
+     #ifdef LCD_I2C_PANELOLU2
739
+       #ifdef MELZI
740
+         #define BTN_ENC 29 //the click switch
741
+         #define SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board
742
+       #else
743
+         #define BTN_ENC 30 //the click switch
744
+       #endif
745
+     #else
746
+       #define BTN_ENC 16  //the click switch
747
+     #endif //Panelolu2
739 748
      //not connected to a pin
740 749
      #define SDCARDDETECT -1    
741 750
     

Loading…
Annulla
Salva