Browse Source

Add option DOGM_SPI_DELAY_US

Scott Lahteine 7 years ago
parent
commit
5460a529da

+ 9
- 5
Marlin/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   #define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -473,15 +473,19 @@
473 473
 
474 474
 #endif // SDSUPPORT
475 475
 
476
-// for dogm lcd displays you can choose some additional fonts:
476
+// Some additional options are available for graphical displays:
477 477
 #if ENABLED(DOGLCD)
478
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
479
-  // we don't have a big font for Cyrillic, Kana
478
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
479
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
480 480
   //#define USE_BIG_EDIT_FONT
481 481
 
482
-  // If you have spare 2300Byte of progmem and want to use a
483
-  // smaller font on the Info-screen uncomment the next line.
482
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
483
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
484 484
   //#define USE_SMALL_INFOFONT
485
+
486
+  // Enable this option and reduce the value to optimize screen updates.
487
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
488
+  //#define DOGM_SPI_DELAY_US 5
485 489
 #endif // DOGLCD
486 490
 
487 491
 // @section safety

+ 9
- 5
Marlin/example_configurations/K8400/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

@@ -468,15 +468,19 @@
468 468
 
469 469
 #endif // SDSUPPORT
470 470
 
471
-// for dogm lcd displays you can choose some additional fonts:
471
+// Some additional options are available for graphical displays:
472 472
 #if ENABLED(DOGLCD)
473
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
474
-  // we don't have a big font for Cyrillic, Kana
473
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
474
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
475 475
   //#define USE_BIG_EDIT_FONT
476 476
 
477
-  // If you have spare 2300Byte of progmem and want to use a
478
-  // smaller font on the Info-screen uncomment the next line.
477
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
478
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
479 479
   //#define USE_SMALL_INFOFONT
480
+
481
+  // Enable this option and reduce the value to optimize screen updates.
482
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
483
+  //#define DOGM_SPI_DELAY_US 5
480 484
 #endif // DOGLCD
481 485
 
482 486
 // @section safety

+ 9
- 5
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h View File

@@ -462,15 +462,19 @@
462 462
 
463 463
 #endif // SDSUPPORT
464 464
 
465
-// for dogm lcd displays you can choose some additional fonts:
465
+// Some additional options are available for graphical displays:
466 466
 #if ENABLED(DOGLCD)
467
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
468
-  // we don't have a big font for Cyrillic, Kana
467
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
468
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
469 469
   //#define USE_BIG_EDIT_FONT
470 470
 
471
-  // If you have spare 2300Byte of progmem and want to use a
472
-  // smaller font on the Info-screen uncomment the next line.
471
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
472
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
473 473
   //#define USE_SMALL_INFOFONT
474
+
475
+  // Enable this option and reduce the value to optimize screen updates.
476
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
477
+  //#define DOGM_SPI_DELAY_US 5
474 478
 #endif // DOGLCD
475 479
 
476 480
 // @section safety

+ 9
- 5
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -462,15 +462,19 @@
462 462
 
463 463
 #endif // SDSUPPORT
464 464
 
465
-// for dogm lcd displays you can choose some additional fonts:
465
+// Some additional options are available for graphical displays:
466 466
 #if ENABLED(DOGLCD)
467
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
468
-  // we don't have a big font for Cyrillic, Kana
467
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
468
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
469 469
   //#define USE_BIG_EDIT_FONT
470 470
 
471
-  // If you have spare 2300Byte of progmem and want to use a
472
-  // smaller font on the Info-screen uncomment the next line.
471
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
472
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
473 473
   //#define USE_SMALL_INFOFONT
474
+
475
+  // Enable this option and reduce the value to optimize screen updates.
476
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
477
+  //#define DOGM_SPI_DELAY_US 5
474 478
 #endif // DOGLCD
475 479
 
476 480
 // @section safety

+ 9
- 5
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -462,15 +462,19 @@
462 462
 
463 463
 #endif // SDSUPPORT
464 464
 
465
-// for dogm lcd displays you can choose some additional fonts:
465
+// Some additional options are available for graphical displays:
466 466
 #if ENABLED(DOGLCD)
467
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
468
-  // we don't have a big font for Cyrillic, Kana
467
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
468
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
469 469
   //#define USE_BIG_EDIT_FONT
470 470
 
471
-  // If you have spare 2300Byte of progmem and want to use a
472
-  // smaller font on the Info-screen uncomment the next line.
471
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
472
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
473 473
   //#define USE_SMALL_INFOFONT
474
+
475
+  // Enable this option and reduce the value to optimize screen updates.
476
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
477
+  //#define DOGM_SPI_DELAY_US 5
474 478
 #endif // DOGLCD
475 479
 
476 480
 // @section safety

+ 9
- 5
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -467,15 +467,19 @@
467 467
 
468 468
 #endif // SDSUPPORT
469 469
 
470
-// for dogm lcd displays you can choose some additional fonts:
470
+// Some additional options are available for graphical displays:
471 471
 #if ENABLED(DOGLCD)
472
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
473
-  // we don't have a big font for Cyrillic, Kana
472
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
473
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
474 474
   //#define USE_BIG_EDIT_FONT
475 475
 
476
-  // If you have spare 2300Byte of progmem and want to use a
477
-  // smaller font on the Info-screen uncomment the next line.
476
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
477
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
478 478
   //#define USE_SMALL_INFOFONT
479
+
480
+  // Enable this option and reduce the value to optimize screen updates.
481
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
482
+  //#define DOGM_SPI_DELAY_US 5
479 483
 #endif // DOGLCD
480 484
 
481 485
 // @section safety

+ 9
- 5
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -462,15 +462,19 @@
462 462
 
463 463
 #endif // SDSUPPORT
464 464
 
465
-// for dogm lcd displays you can choose some additional fonts:
465
+// Some additional options are available for graphical displays:
466 466
 #if ENABLED(DOGLCD)
467
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
468
-  // we don't have a big font for Cyrillic, Kana
467
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
468
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
469 469
   //#define USE_BIG_EDIT_FONT
470 470
 
471
-  // If you have spare 2300Byte of progmem and want to use a
472
-  // smaller font on the Info-screen uncomment the next line.
471
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
472
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
473 473
   //#define USE_SMALL_INFOFONT
474
+
475
+  // Enable this option and reduce the value to optimize screen updates.
476
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
477
+  //#define DOGM_SPI_DELAY_US 5
474 478
 #endif // DOGLCD
475 479
 
476 480
 // @section safety

+ 9
- 5
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 9
- 5
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -460,15 +460,19 @@
460 460
 
461 461
 #endif // SDSUPPORT
462 462
 
463
-// for dogm lcd displays you can choose some additional fonts:
463
+// Some additional options are available for graphical displays:
464 464
 #if ENABLED(DOGLCD)
465
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
466
-  // we don't have a big font for Cyrillic, Kana
465
+  // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
466
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
467 467
   //#define USE_BIG_EDIT_FONT
468 468
 
469
-  // If you have spare 2300Byte of progmem and want to use a
470
-  // smaller font on the Info-screen uncomment the next line.
469
+  // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
470
+  // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
471 471
   //#define USE_SMALL_INFOFONT
472
+
473
+  // Enable this option and reduce the value to optimize screen updates.
474
+  // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
475
+  //#define DOGM_SPI_DELAY_US 5
472 476
 #endif // DOGLCD
473 477
 
474 478
 // @section safety

+ 19
- 13
Marlin/ultralcd_st7920_u8glib_rrd.h View File

@@ -106,12 +106,18 @@ static void ST7920_SWSPI_SND_8BIT(uint8_t val) {
106 106
   ST7920_SND_BIT; // 8
107 107
 }
108 108
 
109
-#define ST7920_CS()              {WRITE(ST7920_CS_PIN,1);u8g_10MicroDelay();}
110
-#define ST7920_NCS()             {WRITE(ST7920_CS_PIN,0);}
111
-#define ST7920_SET_CMD()         {ST7920_SWSPI_SND_8BIT(0xf8);u8g_10MicroDelay();}
112
-#define ST7920_SET_DAT()         {ST7920_SWSPI_SND_8BIT(0xfa);u8g_10MicroDelay();}
113
-#define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((uint8_t)((a)&0xf0u));ST7920_SWSPI_SND_8BIT((uint8_t)((a)<<4u));u8g_10MicroDelay();}
114
-#define ST7920_WRITE_BYTES(p,l)  {uint8_t i;for(i=0;i<l;i++){ST7920_SWSPI_SND_8BIT(*p&0xf0);ST7920_SWSPI_SND_8BIT(*p<<4);p++;}u8g_10MicroDelay();}
109
+#if defined(DOGM_SPI_DELAY_US) && DOGM_SPI_DELAY_US > 0
110
+  #define U8G_DELAY() delayMicroseconds(DOGM_SPI_DELAY_US)
111
+#else
112
+  #define U8G_DELAY() u8g_10MicroDelay()
113
+#endif
114
+
115
+#define ST7920_CS()              { WRITE(ST7920_CS_PIN,1); U8G_DELAY(); }
116
+#define ST7920_NCS()             { WRITE(ST7920_CS_PIN,0); }
117
+#define ST7920_SET_CMD()         { ST7920_SWSPI_SND_8BIT(0xf8); U8G_DELAY(); }
118
+#define ST7920_SET_DAT()         { ST7920_SWSPI_SND_8BIT(0xfa); U8G_DELAY(); }
119
+#define ST7920_WRITE_BYTE(a)     { ST7920_SWSPI_SND_8BIT((uint8_t)((a)&0xf0u)); ST7920_SWSPI_SND_8BIT((uint8_t)((a)<<4u)); U8G_DELAY(); }
120
+#define ST7920_WRITE_BYTES(p,l)  { for (uint8_t i = l + 1; --i;) { ST7920_SWSPI_SND_8BIT(*p&0xf0); ST7920_SWSPI_SND_8BIT(*p<<4); p++; } U8G_DELAY(); }
115 121
 
116 122
 uint8_t u8g_dev_rrd_st7920_128x64_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg, void *arg) {
117 123
   uint8_t i, y;
@@ -167,13 +173,13 @@ uint8_t u8g_dev_rrd_st7920_128x64_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg, vo
167 173
     }
168 174
     break;
169 175
   }
170
-#if PAGE_HEIGHT == 8
171
-  return u8g_dev_pb8h1_base_fn(u8g, dev, msg, arg);
172
-#elif PAGE_HEIGHT == 16
173
-  return u8g_dev_pb16h1_base_fn(u8g, dev, msg, arg);
174
-#else
175
-  return u8g_dev_pb32h1_base_fn(u8g, dev, msg, arg);
176
-#endif
176
+  #if PAGE_HEIGHT == 8
177
+    return u8g_dev_pb8h1_base_fn(u8g, dev, msg, arg);
178
+  #elif PAGE_HEIGHT == 16
179
+    return u8g_dev_pb16h1_base_fn(u8g, dev, msg, arg);
180
+  #else
181
+    return u8g_dev_pb32h1_base_fn(u8g, dev, msg, arg);
182
+  #endif
177 183
 }
178 184
 
179 185
 uint8_t   u8g_dev_st7920_128x64_rrd_buf[(LCD_PIXEL_WIDTH) * (PAGE_HEIGHT) / 8] U8G_NOCOMMON;

Loading…
Cancel
Save