소스 검색

Merge pull request #485 from Banjer/Panelolu2_Melzi

Add Panelolu2 support for Melzi
ErikZalm 12 년 전
부모
커밋
567291e734
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10
    1
      Marlin/pins.h

+ 10
- 1
Marlin/pins.h 파일 보기

735
      //The encoder and click button
735
      //The encoder and click button
736
      #define BTN_EN1 11  
736
      #define BTN_EN1 11  
737
      #define BTN_EN2 10 
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
      //not connected to a pin
748
      //not connected to a pin
740
      #define SDCARDDETECT -1    
749
      #define SDCARDDETECT -1    
741
     
750
     

Loading…
취소
저장