Browse Source

Merge pull request #2848 from japzi/RCBugFix

Fixing Rigidbot LCD Panel Support
Scott Lahteine 8 years ago
parent
commit
62bad1b60f

+ 1
- 5
Marlin/cardreader.cpp View File

195
   cardOK = false;
195
   cardOK = false;
196
   if (root.isOpen()) root.close();
196
   if (root.isOpen()) root.close();
197
 
197
 
198
-  #if ENABLED(SDEXTRASLOW)
199
-    #define SPI_SPEED SPI_QUARTER_SPEED
200
-  #elif ENABLED(SDSLOW)
201
-    #define SPI_SPEED SPI_HALF_SPEED
202
-  #else
198
+  #ifndef SPI_SPEED
203
     #define SPI_SPEED SPI_FULL_SPEED
199
     #define SPI_SPEED SPI_FULL_SPEED
204
   #endif
200
   #endif
205
 
201
 

+ 1
- 2
Marlin/example_configurations/Felix/Configuration.h View File

649
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
649
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
650
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
650
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
651
 // Changed behaviour! If you need SDSUPPORT uncomment it!
651
 // Changed behaviour! If you need SDSUPPORT uncomment it!
652
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
653
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
652
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
654
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
653
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
655
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
654
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
656
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
655
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

618
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
618
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
619
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
619
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
620
 // Changed behaviour! If you need SDSUPPORT uncomment it!
620
 // Changed behaviour! If you need SDSUPPORT uncomment it!
621
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
622
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
621
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
623
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
622
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
624
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
623
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
625
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
624
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/Hephestos/Configuration.h View File

658
 #define ULTRA_LCD  //general LCD support, also 16x2
658
 #define ULTRA_LCD  //general LCD support, also 16x2
659
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
659
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
660
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
660
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
661
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
662
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
661
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
663
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
662
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
664
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
663
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
665
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
664
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/K8200/Configuration.h View File

654
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
654
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
655
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
655
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
656
 // Changed behaviour! If you need SDSUPPORT uncomment it!
656
 // Changed behaviour! If you need SDSUPPORT uncomment it!
657
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
658
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
657
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
659
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
658
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
660
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
659
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
661
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
660
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

666
 #define ULTRA_LCD  //general LCD support, also 16x2
666
 #define ULTRA_LCD  //general LCD support, also 16x2
667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
668
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
668
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
669
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
669
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
671
 #define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
670
 #define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
672
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
671
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
673
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
672
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 8
- 4
Marlin/example_configurations/RigidBot/Configuration.h View File

219
   //#define  DEFAULT_Ki 0.85
219
   //#define  DEFAULT_Ki 0.85
220
   //#define  DEFAULT_Kd 245
220
   //#define  DEFAULT_Kd 245
221
 
221
 
222
+  // E3D w/ rigidbot cartridge
223
+  //#define  DEFAULT_Kp 16.30
224
+  //#define  DEFAULT_Ki 0.95
225
+  //#define  DEFAULT_Kd 69.69
226
+
222
 #endif // PIDTEMP
227
 #endif // PIDTEMP
223
 
228
 
224
 //===========================================================================
229
 //===========================================================================
611
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
616
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
612
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
617
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
613
 //define this to enable EEPROM support
618
 //define this to enable EEPROM support
614
-//#define EEPROM_SETTINGS
619
+#define EEPROM_SETTINGS
615
 
620
 
616
 #if ENABLED(EEPROM_SETTINGS)
621
 #if ENABLED(EEPROM_SETTINGS)
617
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
622
   // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
651
 
656
 
652
 //#define ULTRA_LCD  //general LCD support, also 16x2
657
 //#define ULTRA_LCD  //general LCD support, also 16x2
653
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
658
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
654
-//#define SDSUPPORT // Enable SD Card Support in Hardware Console
659
+#define SDSUPPORT // Enable SD Card Support in Hardware Console
655
 // Changed behaviour! If you need SDSUPPORT uncomment it!
660
 // Changed behaviour! If you need SDSUPPORT uncomment it!
656
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
657
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
661
+#define SPI_SPEED SPI_EIGHTH_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
658
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
662
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
659
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
663
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
660
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
664
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 4
- 4
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

279
 //=============================Additional Features===========================
279
 //=============================Additional Features===========================
280
 //===========================================================================
280
 //===========================================================================
281
 
281
 
282
-#define ENCODER_RATE_MULTIPLIER         // If defined, certain menu edit operations automatically multiply the steps when the encoder is moved quickly
283
-#define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
284
-#define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
282
+//#define ENCODER_RATE_MULTIPLIER         // If defined, certain menu edit operations automatically multiply the steps when the encoder is moved quickly
283
+//#define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
284
+//#define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
285
 
285
 
286
 //#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
286
 //#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
287
 #define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
287
 #define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
414
 
414
 
415
 //The ASCII buffer for receiving from the serial:
415
 //The ASCII buffer for receiving from the serial:
416
 #define MAX_CMD_SIZE 96
416
 #define MAX_CMD_SIZE 96
417
-#define BUFSIZE 4
417
+#define BUFSIZE 8
418
 
418
 
419
 // Bad Serial-connections can miss a received command by sending an 'ok'
419
 // Bad Serial-connections can miss a received command by sending an 'ok'
420
 // Therefore some clients abort after 30 seconds in a timeout.
420
 // Therefore some clients abort after 30 seconds in a timeout.

+ 1
- 2
Marlin/example_configurations/SCARA/Configuration.h View File

674
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
674
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
675
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
675
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
676
 // Changed behaviour! If you need SDSUPPORT uncomment it!
676
 // Changed behaviour! If you need SDSUPPORT uncomment it!
677
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
678
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
677
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
679
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
678
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
680
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
679
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
681
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
680
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/TAZ4/Configuration.h View File

685
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
685
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
686
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
686
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
687
 // Changed behaviour! If you need SDSUPPORT uncomment it!
687
 // Changed behaviour! If you need SDSUPPORT uncomment it!
688
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
689
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
688
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
690
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
689
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
691
 #define ENCODER_PULSES_PER_STEP 2 // Increase if you have a high resolution encoder
690
 #define ENCODER_PULSES_PER_STEP 2 // Increase if you have a high resolution encoder
692
 #define ENCODER_STEPS_PER_MENU_ITEM 1 // Set according to ENCODER_PULSES_PER_STEP or your liking
691
 #define ENCODER_STEPS_PER_MENU_ITEM 1 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/WITBOX/Configuration.h View File

657
 #define ULTRA_LCD  //general LCD support, also 16x2
657
 #define ULTRA_LCD  //general LCD support, also 16x2
658
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
658
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
659
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
659
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
660
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
661
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
660
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
662
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
661
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
663
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
662
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
664
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
663
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

666
 //#define ULTRA_LCD  //general LCD support, also 16x2
666
 //#define ULTRA_LCD  //general LCD support, also 16x2
667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
668
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
668
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
669
-#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
669
+#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
671
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
670
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
672
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
671
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
673
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
672
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

788
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
788
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
789
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
789
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
790
 // Changed behaviour! If you need SDSUPPORT uncomment it!
790
 // Changed behaviour! If you need SDSUPPORT uncomment it!
791
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
792
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
791
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
793
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
792
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
794
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
793
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
795
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
794
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/delta/generic/Configuration.h View File

789
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
789
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
790
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
790
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
791
 // Changed behaviour! If you need SDSUPPORT uncomment it!
791
 // Changed behaviour! If you need SDSUPPORT uncomment it!
792
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
793
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
792
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
794
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
793
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
795
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
794
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
796
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
795
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

793
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
793
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
794
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
794
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
795
 // Changed behaviour! If you need SDSUPPORT uncomment it!
795
 // Changed behaviour! If you need SDSUPPORT uncomment it!
796
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
797
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
796
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
798
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
797
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
799
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
798
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
800
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
799
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

783
 //#define ULTRA_LCD  //general LCD support, also 16x2
783
 //#define ULTRA_LCD  //general LCD support, also 16x2
784
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
784
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
785
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
785
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
786
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
787
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
786
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
788
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
787
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
789
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
788
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
790
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
789
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/makibox/Configuration.h View File

668
 //#define ULTRA_LCD  //general LCD support, also 16x2
668
 //#define ULTRA_LCD  //general LCD support, also 16x2
669
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
669
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
670
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
670
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
671
-#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
672
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
671
+#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
673
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
672
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
674
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
673
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
675
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
674
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

661
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
661
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
662
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
662
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
663
 // Changed behaviour! If you need SDSUPPORT uncomment it!
663
 // Changed behaviour! If you need SDSUPPORT uncomment it!
664
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
665
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
664
+//#define SPI_SPEED SPI_HALF_SPEED // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
666
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
665
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
667
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
666
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
668
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
667
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 16
- 15
Marlin/pins_RIGIDBOARD.h View File

5
 #include "pins_RAMPS_13.h"
5
 #include "pins_RAMPS_13.h"
6
 
6
 
7
 #if ENABLED(Z_MIN_PROBE_ENDSTOP)
7
 #if ENABLED(Z_MIN_PROBE_ENDSTOP)
8
-  #define Z_MIN_PROBE_PIN  19
8
+  #undef Z_MAX_PIN
9
+  #define Z_MAX_PIN -1
10
+  #undef Z_MIN_PROBE_PIN
11
+  #define Z_MIN_PROBE_PIN  19    // Z-MAX pin J14 End Stops
9
 #endif
12
 #endif
10
 
13
 
11
 #undef HEATER_0_PIN
14
 #undef HEATER_0_PIN
25
   #undef BEEPER_PIN
28
   #undef BEEPER_PIN
26
   #define BEEPER_PIN -1
29
   #define BEEPER_PIN -1
27
 
30
 
28
-  #undef SD_DETECT_PIN
29
-  #define SD_DETECT_PIN 22
30
-
31
-  // Extra button definitions, substitute for EN1 / EN2
32
-  #define BTN_UP  37 // BTN_EN1
33
-  #define BTN_DWN 35 // BTN_EN2
34
-  #define BTN_LFT 33
35
-  #define BTN_RT  32
36
-
37
-  // Marlin can respond to UP/DOWN by default
38
-  // #undef  BTN_EN1
39
-  // #undef  BTN_EN2
40
-  //#define BTN_EN1 -1
41
-  //#define BTN_EN2 -1
31
+  // Direction buttons
32
+  #define BTN_UP           37
33
+  #define BTN_DWN          35
34
+  #define BTN_LFT          33
35
+  #define BTN_RT           32
42
 
36
 
37
+  // 'R' button
43
   #undef  BTN_ENC
38
   #undef  BTN_ENC
44
   #define BTN_ENC 31
39
   #define BTN_ENC 31
45
 
40
 
41
+  // Disable encoder
42
+  #undef  BTN_EN1
43
+  #define BTN_EN1 -1
44
+  #undef  BTN_EN2
45
+  #define BTN_EN2 -1
46
+
46
   #undef  SD_DETECT_PIN
47
   #undef  SD_DETECT_PIN
47
   #define SD_DETECT_PIN 22
48
   #define SD_DETECT_PIN 22
48
 
49
 

+ 46
- 8
Marlin/ultralcd.cpp View File

1524
   lcd_implementation_init();
1524
   lcd_implementation_init();
1525
 
1525
 
1526
   #if ENABLED(NEWPANEL)
1526
   #if ENABLED(NEWPANEL)
1527
+    #if BTN_EN1 > 0
1528
+      SET_INPUT(BTN_EN1);
1529
+      WRITE(BTN_EN1, HIGH);
1530
+    #endif
1527
 
1531
 
1528
-    SET_INPUT(BTN_EN1);
1529
-    SET_INPUT(BTN_EN2);
1530
-    WRITE(BTN_EN1, HIGH);
1531
-    WRITE(BTN_EN2, HIGH);
1532
+    #if BTN_EN2 > 0
1533
+      SET_INPUT(BTN_EN2);
1534
+      WRITE(BTN_EN2, HIGH);
1535
+    #endif
1532
 
1536
 
1533
     #if BTN_ENC > 0
1537
     #if BTN_ENC > 0
1534
       SET_INPUT(BTN_ENC);
1538
       SET_INPUT(BTN_ENC);
1543
       WRITE(SHIFT_LD, HIGH);
1547
       WRITE(SHIFT_LD, HIGH);
1544
     #endif
1548
     #endif
1545
 
1549
 
1550
+    #ifdef RIGIDBOT_PANEL
1551
+      SET_INPUT(BTN_UP);
1552
+      SET_INPUT(BTN_DWN);
1553
+      SET_INPUT(BTN_LFT);
1554
+      SET_INPUT(BTN_RT);
1555
+    #endif
1556
+
1546
   #else  // Not NEWPANEL
1557
   #else  // Not NEWPANEL
1547
 
1558
 
1548
     #if ENABLED(SR_LCD_2W_NL) // Non latching 2 wire shift register
1559
     #if ENABLED(SR_LCD_2W_NL) // Non latching 2 wire shift register
1670
               int32_t encoderMovementSteps = abs(encoderDiff) / ENCODER_PULSES_PER_STEP;
1681
               int32_t encoderMovementSteps = abs(encoderDiff) / ENCODER_PULSES_PER_STEP;
1671
 
1682
 
1672
               if (lastEncoderMovementMillis != 0) {
1683
               if (lastEncoderMovementMillis != 0) {
1673
-                // Note that the rate is always calculated between to passes through the 
1684
+                // Note that the rate is always calculated between to passes through the
1674
                 // loop and that the abs of the encoderDiff value is tracked.
1685
                 // loop and that the abs of the encoderDiff value is tracked.
1675
                 float encoderStepRate = (float)(encoderMovementSteps) / ((float)(ms - lastEncoderMovementMillis)) * 1000.0;
1686
                 float encoderStepRate = (float)(encoderMovementSteps) / ((float)(ms - lastEncoderMovementMillis)) * 1000.0;
1676
 
1687
 
1843
   void lcd_buttons_update() {
1854
   void lcd_buttons_update() {
1844
     #if ENABLED(NEWPANEL)
1855
     #if ENABLED(NEWPANEL)
1845
       uint8_t newbutton = 0;
1856
       uint8_t newbutton = 0;
1846
-      if (READ(BTN_EN1) == 0) newbutton |= EN_A;
1847
-      if (READ(BTN_EN2) == 0) newbutton |= EN_B;
1857
+      #if BTN_EN1 > 0
1858
+        if (READ(BTN_EN1) == 0) newbutton |= EN_A;
1859
+      #endif
1860
+      #if BTN_EN2 > 0
1861
+        if (READ(BTN_EN2) == 0) newbutton |= EN_B;
1862
+      #endif
1863
+      #if ENABLED(RIGIDBOT_PANEL) || BTN_ENC > 0
1864
+        millis_t now = millis();
1865
+      #endif
1866
+      #if ENABLED(RIGIDBOT_PANEL)
1867
+        if (now > next_button_update_ms) {
1868
+          if (READ(BTN_UP) == 0) {
1869
+            encoderDiff = -1 * ENCODER_STEPS_PER_MENU_ITEM;
1870
+            next_button_update_ms = now + 300;
1871
+          }
1872
+          else if (READ(BTN_DWN) == 0) {
1873
+            encoderDiff = ENCODER_STEPS_PER_MENU_ITEM;
1874
+            next_button_update_ms = now + 300;
1875
+          }
1876
+          else if (READ(BTN_LFT) == 0) {
1877
+            encoderDiff = -1 * ENCODER_PULSES_PER_STEP;
1878
+            next_button_update_ms = now + 300;
1879
+          }
1880
+          else if (READ(BTN_RT) == 0) {
1881
+            encoderDiff = ENCODER_PULSES_PER_STEP;
1882
+            next_button_update_ms = now + 300;
1883
+          }
1884
+        }
1885
+      #endif
1848
       #if BTN_ENC > 0
1886
       #if BTN_ENC > 0
1849
-        if (millis() > next_button_update_ms && READ(BTN_ENC) == 0) newbutton |= EN_C;
1887
+        if (now > next_button_update_ms && READ(BTN_ENC) == 0) newbutton |= EN_C;
1850
       #endif
1888
       #endif
1851
       buttons = newbutton;
1889
       buttons = newbutton;
1852
       #if ENABLED(LCD_HAS_SLOW_BUTTONS)
1890
       #if ENABLED(LCD_HAS_SLOW_BUTTONS)

Loading…
Cancel
Save