Browse Source

Make DISPLAY_CHARSET_HD44780 a single setting

Scott Lahteine 8 years ago
parent
commit
259794c0be

+ 23
- 19
Marlin/Configuration.h View File

@@ -773,25 +773,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
773 773
 //
774 774
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
775 775
 
776
-//
777
-// LCD CHARACTER SET
778
-//
779
-// Choose ONE of the following charset options. This selection depends on
780
-// your physical hardware, so it must match your character-based LCD.
781
-//
782
-// Note: This option is NOT applicable to graphical displays.
783
-//
784
-// To find out what type of display you have:
785
-//  - Compile and upload with the language (above) set to 'test'
786
-//  - Click the controller to view the LCD menu
787
-//
788
-// The LCD will display two lines from the upper half of the character set.
789
-//
790
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
791
-//
792
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
793
-//#define DISPLAY_CHARSET_HD44780_WESTERN
794
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
776
+/**
777
+ * LCD Character Set
778
+ *
779
+ * Note: This option is NOT applicable to Graphical Displays.
780
+ *
781
+ * All character-based LCD's provide ASCII plus one of these
782
+ * language extensions:
783
+ *
784
+ *  - JAPANESE ... the most common
785
+ *  - WESTERN  ... with more accented characters
786
+ *  - CYRILLIC ... for the Russian language
787
+ *
788
+ * To determine the language extension installed on your controller:
789
+ *
790
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
791
+ *  - Click the controller to view the LCD menu
792
+ *  - The LCD will display Japanese, Western, or Cyrillic text
793
+ *
794
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
795
+ *
796
+ * :['JAPANESE','WESTERN','CYRILLIC']
797
+ */
798
+#define DISPLAY_CHARSET_HD44780 JAPANESE
795 799
 
796 800
 //
797 801
 // LCD TYPE

+ 2
- 2
Marlin/SanityCheck.h View File

@@ -172,8 +172,8 @@
172 172
 /**
173 173
  * Required LCD language
174 174
  */
175
-#if DISABLED(DOGLCD) && ENABLED(ULTRA_LCD) && DISABLED(DISPLAY_CHARSET_HD44780_JAPAN) && DISABLED(DISPLAY_CHARSET_HD44780_WESTERN) && DISABLED(DISPLAY_CHARSET_HD44780_CYRILLIC)
176
-  #error You must enable either DISPLAY_CHARSET_HD44780_JAPAN or DISPLAY_CHARSET_HD44780_WESTERN  or DISPLAY_CHARSET_HD44780_CYRILLIC for your LCD controller.
175
+#if DISABLED(DOGLCD) && ENABLED(ULTRA_LCD) && !defined(DISPLAY_CHARSET_HD44780)
176
+  #error You must set DISPLAY_CHARSET_HD44780 to JAPANESE, WESTERN or CYRILLIC for your LCD controller.
177 177
 #endif
178 178
 
179 179
 /**

+ 5
- 4
Marlin/dogm_lcd_implementation.h View File

@@ -37,7 +37,8 @@
37 37
 #define DOGM_LCD_IMPLEMENTATION_H
38 38
 
39 39
 /**
40
- * Implementation of the LCD display routines for a DOGM128 graphic display. These are common LCD 128x64 pixel graphic displays.
40
+ * Implementation of the LCD display routines for a DOGM128 graphic display.
41
+ * These are common LCD 128x64 pixel graphic displays.
41 42
  */
42 43
 
43 44
 #if ENABLED(ULTIPANEL)
@@ -91,13 +92,13 @@
91 92
     #define FONT_MENU_NAME ISO10646_1_5x7
92 93
   #endif
93 94
 #else // SIMULATE_ROMFONT
94
-  #if ENABLED(DISPLAY_CHARSET_HD44780_JAPAN)
95
+  #if DISPLAY_CHARSET_HD44780 == JAPANESE
95 96
     #include "dogm_font_data_HD44780_J.h"
96 97
     #define FONT_MENU_NAME HD44780_J_5x7
97
-  #elif ENABLED(DISPLAY_CHARSET_HD44780_WESTERN)
98
+  #elif DISPLAY_CHARSET_HD44780 == WESTERN
98 99
     #include "dogm_font_data_HD44780_W.h"
99 100
     #define FONT_MENU_NAME HD44780_W_5x7
100
-  #elif ENABLED(DISPLAY_CHARSET_HD44780_CYRILLIC)
101
+  #elif DISPLAY_CHARSET_HD44780 == CYRILLIC
101 102
     #include "dogm_font_data_HD44780_C.h"
102 103
     #define FONT_MENU_NAME HD44780_C_5x7
103 104
   #else // fall-back

+ 23
- 19
Marlin/example_configurations/Felix/Configuration.h View File

@@ -755,25 +755,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
755 755
 //
756 756
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
757 757
 
758
-//
759
-// LCD CHARACTER SET
760
-//
761
-// Choose ONE of the following charset options. This selection depends on
762
-// your physical hardware, so it must match your character-based LCD.
763
-//
764
-// Note: This option is NOT applicable to graphical displays.
765
-//
766
-// To find out what type of display you have:
767
-//  - Compile and upload with the language (above) set to 'test'
768
-//  - Click the controller to view the LCD menu
769
-//
770
-// The LCD will display two lines from the upper half of the character set.
771
-//
772
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
773
-//
774
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
775
-//#define DISPLAY_CHARSET_HD44780_WESTERN
776
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
758
+/**
759
+ * LCD Character Set
760
+ *
761
+ * Note: This option is NOT applicable to Graphical Displays.
762
+ *
763
+ * All character-based LCD's provide ASCII plus one of these
764
+ * language extensions:
765
+ *
766
+ *  - JAPANESE ... the most common
767
+ *  - WESTERN  ... with more accented characters
768
+ *  - CYRILLIC ... for the Russian language
769
+ *
770
+ * To determine the language extension installed on your controller:
771
+ *
772
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
773
+ *  - Click the controller to view the LCD menu
774
+ *  - The LCD will display Japanese, Western, or Cyrillic text
775
+ *
776
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
777
+ *
778
+ * :['JAPANESE','WESTERN','CYRILLIC']
779
+ */
780
+#define DISPLAY_CHARSET_HD44780 JAPANESE
777 781
 
778 782
 //
779 783
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

@@ -752,25 +752,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
752 752
 //
753 753
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
754 754
 
755
-//
756
-// LCD CHARACTER SET
757
-//
758
-// Choose ONE of the following charset options. This selection depends on
759
-// your physical hardware, so it must match your character-based LCD.
760
-//
761
-// Note: This option is NOT applicable to graphical displays.
762
-//
763
-// To find out what type of display you have:
764
-//  - Compile and upload with the language (above) set to 'test'
765
-//  - Click the controller to view the LCD menu
766
-//
767
-// The LCD will display two lines from the upper half of the character set.
768
-//
769
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
770
-//
771
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
772
-//#define DISPLAY_CHARSET_HD44780_WESTERN
773
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
755
+/**
756
+ * LCD Character Set
757
+ *
758
+ * Note: This option is NOT applicable to Graphical Displays.
759
+ *
760
+ * All character-based LCD's provide ASCII plus one of these
761
+ * language extensions:
762
+ *
763
+ *  - JAPANESE ... the most common
764
+ *  - WESTERN  ... with more accented characters
765
+ *  - CYRILLIC ... for the Russian language
766
+ *
767
+ * To determine the language extension installed on your controller:
768
+ *
769
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
770
+ *  - Click the controller to view the LCD menu
771
+ *  - The LCD will display Japanese, Western, or Cyrillic text
772
+ *
773
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
774
+ *
775
+ * :['JAPANESE','WESTERN','CYRILLIC']
776
+ */
777
+#define DISPLAY_CHARSET_HD44780 JAPANESE
774 778
 
775 779
 //
776 780
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -764,25 +764,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
764 764
 //
765 765
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
766 766
 
767
-//
768
-// LCD CHARACTER SET
769
-//
770
-// Choose ONE of the following charset options. This selection depends on
771
-// your physical hardware, so it must match your character-based LCD.
772
-//
773
-// Note: This option is NOT applicable to graphical displays.
774
-//
775
-// To find out what type of display you have:
776
-//  - Compile and upload with the language (above) set to 'test'
777
-//  - Click the controller to view the LCD menu
778
-//
779
-// The LCD will display two lines from the upper half of the character set.
780
-//
781
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
782
-//
783
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
784
-//#define DISPLAY_CHARSET_HD44780_WESTERN
785
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
767
+/**
768
+ * LCD Character Set
769
+ *
770
+ * Note: This option is NOT applicable to Graphical Displays.
771
+ *
772
+ * All character-based LCD's provide ASCII plus one of these
773
+ * language extensions:
774
+ *
775
+ *  - JAPANESE ... the most common
776
+ *  - WESTERN  ... with more accented characters
777
+ *  - CYRILLIC ... for the Russian language
778
+ *
779
+ * To determine the language extension installed on your controller:
780
+ *
781
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
782
+ *  - Click the controller to view the LCD menu
783
+ *  - The LCD will display Japanese, Western, or Cyrillic text
784
+ *
785
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
786
+ *
787
+ * :['JAPANESE','WESTERN','CYRILLIC']
788
+ */
789
+#define DISPLAY_CHARSET_HD44780 JAPANESE
786 790
 
787 791
 //
788 792
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -766,25 +766,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
766 766
 //
767 767
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
768 768
 
769
-//
770
-// LCD CHARACTER SET
771
-//
772
-// Choose ONE of the following charset options. This selection depends on
773
-// your physical hardware, so it must match your character-based LCD.
774
-//
775
-// Note: This option is NOT applicable to graphical displays.
776
-//
777
-// To find out what type of display you have:
778
-//  - Compile and upload with the language (above) set to 'test'
779
-//  - Click the controller to view the LCD menu
780
-//
781
-// The LCD will display two lines from the upper half of the character set.
782
-//
783
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
784
-//
785
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
786
-//#define DISPLAY_CHARSET_HD44780_WESTERN
787
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
769
+/**
770
+ * LCD Character Set
771
+ *
772
+ * Note: This option is NOT applicable to Graphical Displays.
773
+ *
774
+ * All character-based LCD's provide ASCII plus one of these
775
+ * language extensions:
776
+ *
777
+ *  - JAPANESE ... the most common
778
+ *  - WESTERN  ... with more accented characters
779
+ *  - CYRILLIC ... for the Russian language
780
+ *
781
+ * To determine the language extension installed on your controller:
782
+ *
783
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
784
+ *  - Click the controller to view the LCD menu
785
+ *  - The LCD will display Japanese, Western, or Cyrillic text
786
+ *
787
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
788
+ *
789
+ * :['JAPANESE','WESTERN','CYRILLIC']
790
+ */
791
+#define DISPLAY_CHARSET_HD44780 JAPANESE
788 792
 
789 793
 //
790 794
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/K8200/Configuration.h View File

@@ -789,25 +789,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
789 789
 //
790 790
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
791 791
 
792
-//
793
-// LCD CHARACTER SET
794
-//
795
-// Choose ONE of the following charset options. This selection depends on
796
-// your physical hardware, so it must match your character-based LCD.
797
-//
798
-// Note: This option is NOT applicable to graphical displays.
799
-//
800
-// To find out what type of display you have:
801
-//  - Compile and upload with the language (above) set to 'test'
802
-//  - Click the controller to view the LCD menu
803
-//
804
-// The LCD will display two lines from the upper half of the character set.
805
-//
806
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
807
-//
808
-#define DISPLAY_CHARSET_HD44780_JAPAN        // K8200: for Display VM8201
809
-//#define DISPLAY_CHARSET_HD44780_WESTERN
810
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
792
+/**
793
+ * LCD Character Set
794
+ *
795
+ * Note: This option is NOT applicable to Graphical Displays.
796
+ *
797
+ * All character-based LCD's provide ASCII plus one of these
798
+ * language extensions:
799
+ *
800
+ *  - JAPANESE ... the most common
801
+ *  - WESTERN  ... with more accented characters
802
+ *  - CYRILLIC ... for the Russian language
803
+ *
804
+ * To determine the language extension installed on your controller:
805
+ *
806
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
807
+ *  - Click the controller to view the LCD menu
808
+ *  - The LCD will display Japanese, Western, or Cyrillic text
809
+ *
810
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
811
+ *
812
+ * :['JAPANESE','WESTERN','CYRILLIC']
813
+ */
814
+#define DISPLAY_CHARSET_HD44780 JAPANESE     // K8200: for Display VM8201
811 815
 
812 816
 //
813 817
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -772,25 +772,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
772 772
 //
773 773
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
774 774
 
775
-//
776
-// LCD CHARACTER SET
777
-//
778
-// Choose ONE of the following charset options. This selection depends on
779
-// your physical hardware, so it must match your character-based LCD.
780
-//
781
-// Note: This option is NOT applicable to graphical displays.
782
-//
783
-// To find out what type of display you have:
784
-//  - Compile and upload with the language (above) set to 'test'
785
-//  - Click the controller to view the LCD menu
786
-//
787
-// The LCD will display two lines from the upper half of the character set.
788
-//
789
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
790
-//
791
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
792
-//#define DISPLAY_CHARSET_HD44780_WESTERN
793
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
775
+/**
776
+ * LCD Character Set
777
+ *
778
+ * Note: This option is NOT applicable to Graphical Displays.
779
+ *
780
+ * All character-based LCD's provide ASCII plus one of these
781
+ * language extensions:
782
+ *
783
+ *  - JAPANESE ... the most common
784
+ *  - WESTERN  ... with more accented characters
785
+ *  - CYRILLIC ... for the Russian language
786
+ *
787
+ * To determine the language extension installed on your controller:
788
+ *
789
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
790
+ *  - Click the controller to view the LCD menu
791
+ *  - The LCD will display Japanese, Western, or Cyrillic text
792
+ *
793
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
794
+ *
795
+ * :['JAPANESE','WESTERN','CYRILLIC']
796
+ */
797
+#define DISPLAY_CHARSET_HD44780 JAPANESE
794 798
 
795 799
 //
796 800
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -767,25 +767,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
767 767
 //
768 768
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
769 769
 
770
-//
771
-// LCD CHARACTER SET
772
-//
773
-// Choose ONE of the following charset options. This selection depends on
774
-// your physical hardware, so it must match your character-based LCD.
775
-//
776
-// Note: This option is NOT applicable to graphical displays.
777
-//
778
-// To find out what type of display you have:
779
-//  - Compile and upload with the language (above) set to 'test'
780
-//  - Click the controller to view the LCD menu
781
-//
782
-// The LCD will display two lines from the upper half of the character set.
783
-//
784
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
785
-//
786
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
787
-//#define DISPLAY_CHARSET_HD44780_WESTERN
788
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
770
+/**
771
+ * LCD Character Set
772
+ *
773
+ * Note: This option is NOT applicable to Graphical Displays.
774
+ *
775
+ * All character-based LCD's provide ASCII plus one of these
776
+ * language extensions:
777
+ *
778
+ *  - JAPANESE ... the most common
779
+ *  - WESTERN  ... with more accented characters
780
+ *  - CYRILLIC ... for the Russian language
781
+ *
782
+ * To determine the language extension installed on your controller:
783
+ *
784
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
785
+ *  - Click the controller to view the LCD menu
786
+ *  - The LCD will display Japanese, Western, or Cyrillic text
787
+ *
788
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
789
+ *
790
+ * :['JAPANESE','WESTERN','CYRILLIC']
791
+ */
792
+#define DISPLAY_CHARSET_HD44780 JAPANESE
789 793
 
790 794
 //
791 795
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -780,25 +780,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
780 780
 //
781 781
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
782 782
 
783
-//
784
-// LCD CHARACTER SET
785
-//
786
-// Choose ONE of the following charset options. This selection depends on
787
-// your physical hardware, so it must match your character-based LCD.
788
-//
789
-// Note: This option is NOT applicable to graphical displays.
790
-//
791
-// To find out what type of display you have:
792
-//  - Compile and upload with the language (above) set to 'test'
793
-//  - Click the controller to view the LCD menu
794
-//
795
-// The LCD will display two lines from the upper half of the character set.
796
-//
797
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
798
-//
799
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
800
-//#define DISPLAY_CHARSET_HD44780_WESTERN
801
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
783
+/**
784
+ * LCD Character Set
785
+ *
786
+ * Note: This option is NOT applicable to Graphical Displays.
787
+ *
788
+ * All character-based LCD's provide ASCII plus one of these
789
+ * language extensions:
790
+ *
791
+ *  - JAPANESE ... the most common
792
+ *  - WESTERN  ... with more accented characters
793
+ *  - CYRILLIC ... for the Russian language
794
+ *
795
+ * To determine the language extension installed on your controller:
796
+ *
797
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
798
+ *  - Click the controller to view the LCD menu
799
+ *  - The LCD will display Japanese, Western, or Cyrillic text
800
+ *
801
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
802
+ *
803
+ * :['JAPANESE','WESTERN','CYRILLIC']
804
+ */
805
+#define DISPLAY_CHARSET_HD44780 JAPANESE
802 806
 
803 807
 //
804 808
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -793,25 +793,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
793 793
 //
794 794
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
795 795
 
796
-//
797
-// LCD CHARACTER SET
798
-//
799
-// Choose ONE of the following charset options. This selection depends on
800
-// your physical hardware, so it must match your character-based LCD.
801
-//
802
-// Note: This option is NOT applicable to graphical displays.
803
-//
804
-// To find out what type of display you have:
805
-//  - Compile and upload with the language (above) set to 'test'
806
-//  - Click the controller to view the LCD menu
807
-//
808
-// The LCD will display two lines from the upper half of the character set.
809
-//
810
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
811
-//
812
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
813
-//#define DISPLAY_CHARSET_HD44780_WESTERN
814
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
796
+/**
797
+ * LCD Character Set
798
+ *
799
+ * Note: This option is NOT applicable to Graphical Displays.
800
+ *
801
+ * All character-based LCD's provide ASCII plus one of these
802
+ * language extensions:
803
+ *
804
+ *  - JAPANESE ... the most common
805
+ *  - WESTERN  ... with more accented characters
806
+ *  - CYRILLIC ... for the Russian language
807
+ *
808
+ * To determine the language extension installed on your controller:
809
+ *
810
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
811
+ *  - Click the controller to view the LCD menu
812
+ *  - The LCD will display Japanese, Western, or Cyrillic text
813
+ *
814
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
815
+ *
816
+ * :['JAPANESE','WESTERN','CYRILLIC']
817
+ */
818
+#define DISPLAY_CHARSET_HD44780 JAPANESE
815 819
 
816 820
 //
817 821
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -764,25 +764,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
764 764
 //
765 765
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
766 766
 
767
-//
768
-// LCD CHARACTER SET
769
-//
770
-// Choose ONE of the following charset options. This selection depends on
771
-// your physical hardware, so it must match your character-based LCD.
772
-//
773
-// Note: This option is NOT applicable to graphical displays.
774
-//
775
-// To find out what type of display you have:
776
-//  - Compile and upload with the language (above) set to 'test'
777
-//  - Click the controller to view the LCD menu
778
-//
779
-// The LCD will display two lines from the upper half of the character set.
780
-//
781
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
782
-//
783
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
784
-//#define DISPLAY_CHARSET_HD44780_WESTERN
785
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
767
+/**
768
+ * LCD Character Set
769
+ *
770
+ * Note: This option is NOT applicable to Graphical Displays.
771
+ *
772
+ * All character-based LCD's provide ASCII plus one of these
773
+ * language extensions:
774
+ *
775
+ *  - JAPANESE ... the most common
776
+ *  - WESTERN  ... with more accented characters
777
+ *  - CYRILLIC ... for the Russian language
778
+ *
779
+ * To determine the language extension installed on your controller:
780
+ *
781
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
782
+ *  - Click the controller to view the LCD menu
783
+ *  - The LCD will display Japanese, Western, or Cyrillic text
784
+ *
785
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
786
+ *
787
+ * :['JAPANESE','WESTERN','CYRILLIC']
788
+ */
789
+#define DISPLAY_CHARSET_HD44780 JAPANESE
786 790
 
787 791
 //
788 792
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -772,25 +772,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
772 772
 //
773 773
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
774 774
 
775
-//
776
-// LCD CHARACTER SET
777
-//
778
-// Choose ONE of the following charset options. This selection depends on
779
-// your physical hardware, so it must match your character-based LCD.
780
-//
781
-// Note: This option is NOT applicable to graphical displays.
782
-//
783
-// To find out what type of display you have:
784
-//  - Compile and upload with the language (above) set to 'test'
785
-//  - Click the controller to view the LCD menu
786
-//
787
-// The LCD will display two lines from the upper half of the character set.
788
-//
789
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
790
-//
791
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
792
-//#define DISPLAY_CHARSET_HD44780_WESTERN
793
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
775
+/**
776
+ * LCD Character Set
777
+ *
778
+ * Note: This option is NOT applicable to Graphical Displays.
779
+ *
780
+ * All character-based LCD's provide ASCII plus one of these
781
+ * language extensions:
782
+ *
783
+ *  - JAPANESE ... the most common
784
+ *  - WESTERN  ... with more accented characters
785
+ *  - CYRILLIC ... for the Russian language
786
+ *
787
+ * To determine the language extension installed on your controller:
788
+ *
789
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
790
+ *  - Click the controller to view the LCD menu
791
+ *  - The LCD will display Japanese, Western, or Cyrillic text
792
+ *
793
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
794
+ *
795
+ * :['JAPANESE','WESTERN','CYRILLIC']
796
+ */
797
+#define DISPLAY_CHARSET_HD44780 JAPANESE
794 798
 
795 799
 //
796 800
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -901,25 +901,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
901 901
 //
902 902
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
903 903
 
904
-//
905
-// LCD CHARACTER SET
906
-//
907
-// Choose ONE of the following charset options. This selection depends on
908
-// your physical hardware, so it must match your character-based LCD.
909
-//
910
-// Note: This option is NOT applicable to graphical displays.
911
-//
912
-// To find out what type of display you have:
913
-//  - Compile and upload with the language (above) set to 'test'
914
-//  - Click the controller to view the LCD menu
915
-//
916
-// The LCD will display two lines from the upper half of the character set.
917
-//
918
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
919
-//
920
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
921
-//#define DISPLAY_CHARSET_HD44780_WESTERN
922
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
904
+/**
905
+ * LCD Character Set
906
+ *
907
+ * Note: This option is NOT applicable to Graphical Displays.
908
+ *
909
+ * All character-based LCD's provide ASCII plus one of these
910
+ * language extensions:
911
+ *
912
+ *  - JAPANESE ... the most common
913
+ *  - WESTERN  ... with more accented characters
914
+ *  - CYRILLIC ... for the Russian language
915
+ *
916
+ * To determine the language extension installed on your controller:
917
+ *
918
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
919
+ *  - Click the controller to view the LCD menu
920
+ *  - The LCD will display Japanese, Western, or Cyrillic text
921
+ *
922
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
923
+ *
924
+ * :['JAPANESE','WESTERN','CYRILLIC']
925
+ */
926
+#define DISPLAY_CHARSET_HD44780 JAPANESE
923 927
 
924 928
 //
925 929
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -901,25 +901,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
901 901
 //
902 902
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
903 903
 
904
-//
905
-// LCD CHARACTER SET
906
-//
907
-// Choose ONE of the following charset options. This selection depends on
908
-// your physical hardware, so it must match your character-based LCD.
909
-//
910
-// Note: This option is NOT applicable to graphical displays.
911
-//
912
-// To find out what type of display you have:
913
-//  - Compile and upload with the language (above) set to 'test'
914
-//  - Click the controller to view the LCD menu
915
-//
916
-// The LCD will display two lines from the upper half of the character set.
917
-//
918
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
919
-//
920
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
921
-//#define DISPLAY_CHARSET_HD44780_WESTERN
922
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
904
+/**
905
+ * LCD Character Set
906
+ *
907
+ * Note: This option is NOT applicable to Graphical Displays.
908
+ *
909
+ * All character-based LCD's provide ASCII plus one of these
910
+ * language extensions:
911
+ *
912
+ *  - JAPANESE ... the most common
913
+ *  - WESTERN  ... with more accented characters
914
+ *  - CYRILLIC ... for the Russian language
915
+ *
916
+ * To determine the language extension installed on your controller:
917
+ *
918
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
919
+ *  - Click the controller to view the LCD menu
920
+ *  - The LCD will display Japanese, Western, or Cyrillic text
921
+ *
922
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
923
+ *
924
+ * :['JAPANESE','WESTERN','CYRILLIC']
925
+ */
926
+#define DISPLAY_CHARSET_HD44780 JAPANESE
923 927
 
924 928
 //
925 929
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -905,25 +905,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
905 905
 //
906 906
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
907 907
 
908
-//
909
-// LCD CHARACTER SET
910
-//
911
-// Choose ONE of the following charset options. This selection depends on
912
-// your physical hardware, so it must match your character-based LCD.
913
-//
914
-// Note: This option is NOT applicable to graphical displays.
915
-//
916
-// To find out what type of display you have:
917
-//  - Compile and upload with the language (above) set to 'test'
918
-//  - Click the controller to view the LCD menu
919
-//
920
-// The LCD will display two lines from the upper half of the character set.
921
-//
922
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
923
-//
924
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
925
-//#define DISPLAY_CHARSET_HD44780_WESTERN
926
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
908
+/**
909
+ * LCD Character Set
910
+ *
911
+ * Note: This option is NOT applicable to Graphical Displays.
912
+ *
913
+ * All character-based LCD's provide ASCII plus one of these
914
+ * language extensions:
915
+ *
916
+ *  - JAPANESE ... the most common
917
+ *  - WESTERN  ... with more accented characters
918
+ *  - CYRILLIC ... for the Russian language
919
+ *
920
+ * To determine the language extension installed on your controller:
921
+ *
922
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
923
+ *  - Click the controller to view the LCD menu
924
+ *  - The LCD will display Japanese, Western, or Cyrillic text
925
+ *
926
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
927
+ *
928
+ * :['JAPANESE','WESTERN','CYRILLIC']
929
+ */
930
+#define DISPLAY_CHARSET_HD44780 JAPANESE
927 931
 
928 932
 //
929 933
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -898,25 +898,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
898 898
 //
899 899
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
900 900
 
901
-//
902
-// LCD CHARACTER SET
903
-//
904
-// Choose ONE of the following charset options. This selection depends on
905
-// your physical hardware, so it must match your character-based LCD.
906
-//
907
-// Note: This option is NOT applicable to graphical displays.
908
-//
909
-// To find out what type of display you have:
910
-//  - Compile and upload with the language (above) set to 'test'
911
-//  - Click the controller to view the LCD menu
912
-//
913
-// The LCD will display two lines from the upper half of the character set.
914
-//
915
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
916
-//
917
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
918
-//#define DISPLAY_CHARSET_HD44780_WESTERN
919
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
901
+/**
902
+ * LCD Character Set
903
+ *
904
+ * Note: This option is NOT applicable to Graphical Displays.
905
+ *
906
+ * All character-based LCD's provide ASCII plus one of these
907
+ * language extensions:
908
+ *
909
+ *  - JAPANESE ... the most common
910
+ *  - WESTERN  ... with more accented characters
911
+ *  - CYRILLIC ... for the Russian language
912
+ *
913
+ * To determine the language extension installed on your controller:
914
+ *
915
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
916
+ *  - Click the controller to view the LCD menu
917
+ *  - The LCD will display Japanese, Western, or Cyrillic text
918
+ *
919
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
920
+ *
921
+ * :['JAPANESE','WESTERN','CYRILLIC']
922
+ */
923
+#define DISPLAY_CHARSET_HD44780 JAPANESE
920 924
 
921 925
 //
922 926
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -906,25 +906,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
906 906
 //
907 907
 #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
908 908
 
909
-//
910
-// LCD CHARACTER SET
911
-//
912
-// Choose ONE of the following charset options. This selection depends on
913
-// your physical hardware, so it must match your character-based LCD.
914
-//
915
-// Note: This option is NOT applicable to graphical displays.
916
-//
917
-// To find out what type of display you have:
918
-//  - Compile and upload with the language (above) set to 'test'
919
-//  - Click the controller to view the LCD menu
920
-//
921
-// The LCD will display two lines from the upper half of the character set.
922
-//
923
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
924
-//
925
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
926
-//#define DISPLAY_CHARSET_HD44780_WESTERN
927
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
909
+/**
910
+ * LCD Character Set
911
+ *
912
+ * Note: This option is NOT applicable to Graphical Displays.
913
+ *
914
+ * All character-based LCD's provide ASCII plus one of these
915
+ * language extensions:
916
+ *
917
+ *  - JAPANESE ... the most common
918
+ *  - WESTERN  ... with more accented characters
919
+ *  - CYRILLIC ... for the Russian language
920
+ *
921
+ * To determine the language extension installed on your controller:
922
+ *
923
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
924
+ *  - Click the controller to view the LCD menu
925
+ *  - The LCD will display Japanese, Western, or Cyrillic text
926
+ *
927
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
928
+ *
929
+ * :['JAPANESE','WESTERN','CYRILLIC']
930
+ */
931
+#define DISPLAY_CHARSET_HD44780 JAPANESE
928 932
 
929 933
 //
930 934
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/makibox/Configuration.h View File

@@ -775,25 +775,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
775 775
 //
776 776
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
777 777
 
778
-//
779
-// LCD CHARACTER SET
780
-//
781
-// Choose ONE of the following charset options. This selection depends on
782
-// your physical hardware, so it must match your character-based LCD.
783
-//
784
-// Note: This option is NOT applicable to graphical displays.
785
-//
786
-// To find out what type of display you have:
787
-//  - Compile and upload with the language (above) set to 'test'
788
-//  - Click the controller to view the LCD menu
789
-//
790
-// The LCD will display two lines from the upper half of the character set.
791
-//
792
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
793
-//
794
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
795
-//#define DISPLAY_CHARSET_HD44780_WESTERN
796
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
778
+/**
779
+ * LCD Character Set
780
+ *
781
+ * Note: This option is NOT applicable to Graphical Displays.
782
+ *
783
+ * All character-based LCD's provide ASCII plus one of these
784
+ * language extensions:
785
+ *
786
+ *  - JAPANESE ... the most common
787
+ *  - WESTERN  ... with more accented characters
788
+ *  - CYRILLIC ... for the Russian language
789
+ *
790
+ * To determine the language extension installed on your controller:
791
+ *
792
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
793
+ *  - Click the controller to view the LCD menu
794
+ *  - The LCD will display Japanese, Western, or Cyrillic text
795
+ *
796
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
797
+ *
798
+ * :['JAPANESE','WESTERN','CYRILLIC']
799
+ */
800
+#define DISPLAY_CHARSET_HD44780 JAPANESE
797 801
 
798 802
 //
799 803
 // LCD TYPE

+ 23
- 19
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -766,25 +766,29 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
766 766
 //
767 767
 //#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
768 768
 
769
-//
770
-// LCD CHARACTER SET
771
-//
772
-// Choose ONE of the following charset options. This selection depends on
773
-// your physical hardware, so it must match your character-based LCD.
774
-//
775
-// Note: This option is NOT applicable to graphical displays.
776
-//
777
-// To find out what type of display you have:
778
-//  - Compile and upload with the language (above) set to 'test'
779
-//  - Click the controller to view the LCD menu
780
-//
781
-// The LCD will display two lines from the upper half of the character set.
782
-//
783
-// See also https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
784
-//
785
-#define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
786
-//#define DISPLAY_CHARSET_HD44780_WESTERN
787
-//#define DISPLAY_CHARSET_HD44780_CYRILLIC
769
+/**
770
+ * LCD Character Set
771
+ *
772
+ * Note: This option is NOT applicable to Graphical Displays.
773
+ *
774
+ * All character-based LCD's provide ASCII plus one of these
775
+ * language extensions:
776
+ *
777
+ *  - JAPANESE ... the most common
778
+ *  - WESTERN  ... with more accented characters
779
+ *  - CYRILLIC ... for the Russian language
780
+ *
781
+ * To determine the language extension installed on your controller:
782
+ *
783
+ *  - Compile and upload with LCD_LANGUAGE set to 'test'
784
+ *  - Click the controller to view the LCD menu
785
+ *  - The LCD will display Japanese, Western, or Cyrillic text
786
+ *
787
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
788
+ *
789
+ * :['JAPANESE','WESTERN','CYRILLIC']
790
+ */
791
+#define DISPLAY_CHARSET_HD44780 JAPANESE
788 792
 
789 793
 //
790 794
 // LCD TYPE

+ 4
- 4
Marlin/language.h View File

@@ -27,6 +27,10 @@
27 27
 
28 28
 #define GENERATE_LANGUAGE_INCLUDE(M)  STRINGIFY_(language_##M.h)
29 29
 
30
+// For character-based LCD controllers (DISPLAY_CHARSET_HD44780)
31
+#define JAPANESE 1
32
+#define WESTERN  2
33
+#define CYRILLIC 3
30 34
 
31 35
 // NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
32 36
 //
@@ -232,10 +236,6 @@
232 236
 
233 237
 // LCD Menu Messages
234 238
 
235
-#if DISABLED(DISPLAY_CHARSET_HD44780_JAPAN) && DISABLED(DISPLAY_CHARSET_HD44780_WESTERN) && DISABLED(DISPLAY_CHARSET_HD44780_CYRILLIC)
236
-  #define DISPLAY_CHARSET_HD44780_JAPAN
237
-#endif
238
-
239 239
 #include LANGUAGE_INCLUDE
240 240
 #include "language_en.h"
241 241
 

+ 13
- 13
Marlin/utf_mapper.h View File

@@ -40,7 +40,7 @@
40 40
     #define MAPPER_ONE_TO_ONE
41 41
   #endif
42 42
 #else // SIMULATE_ROMFONT
43
-  #if ENABLED(DISPLAY_CHARSET_HD44780_JAPAN)
43
+  #if DISPLAY_CHARSET_HD44780 == JAPANESE
44 44
     #if ENABLED(MAPPER_C2C3)
45 45
       const PROGMEM uint8_t utf_recode[] =
46 46
            { // 0    1    2    3    4    5    6    7    8    9    a    b    c    d    e    f          This is fair for symbols
@@ -77,7 +77,7 @@
77 77
       #error( "Cyrillic on a japanese dsplay makes no sense. There are no matching symbols.");
78 78
     #endif
79 79
 
80
-  #elif ENABLED(DISPLAY_CHARSET_HD44780_WESTERN)
80
+  #elif DISPLAY_CHARSET_HD44780 == WESTERN
81 81
     #if ENABLED(MAPPER_C2C3)
82 82
       const PROGMEM uint8_t utf_recode[] =
83 83
            { // 0    1    2    3    4    5    6    7    8    9    a    b    c    d    e    f   This is relative complete.
@@ -111,28 +111,28 @@
111 111
       #error( "Katakana on a western display makes no sense. There are no matching symbols." );
112 112
     #endif
113 113
 
114
-  #elif ENABLED(DISPLAY_CHARSET_HD44780_CYRILLIC)
114
+  #elif DISPLAY_CHARSET_HD44780 == CYRILLIC
115 115
     #if ENABLED(MAPPER_D0D1)
116 116
       #define MAPPER_D0D1_MOD
117 117
       // it is a Russian alphabet translation
118 118
       // except 0401 --> 0xa2 = Ё, 0451 --> 0xb5 = ё
119 119
       const PROGMEM uint8_t utf_recode[] =
120 120
              { 0x41,0xa0,0x42,0xa1,0xe0,0x45,0xa3,0xa4,   // unicode U+0400 to U+047f
121
-  //            A   Б->Ё  B    Г    Д    E    Ж    З      // 0  Ѐ Ё Ђ Ѓ Є Ѕ І Ї
121
+             // A   Б->Ё  B    Г    Д    E    Ж    З      // 0  Ѐ Ё Ђ Ѓ Є Ѕ І Ї
122 122
                0xa5,0xa6,0x4b,0xa7,0x4d,0x48,0x4f,0xa8,   //    Ј Љ Њ Ћ Ќ Ѝ Ў Џ
123
-  //            И    Й    K    Л    M    H    O    П      // 1  А Б В Г Д Е Ж З
123
+             // И    Й    K    Л    M    H    O    П      // 1  А Б В Г Д Е Ж З
124 124
                0x50,0x43,0x54,0xa9,0xaa,0x58,0xe1,0xab,   //    И Й К Л М Н О П
125
-  //            P    C    T    У    Ф    X    Ч    ч      // 2  Р С Т У Ф Х Г Ч
125
+             // P    C    T    У    Ф    X    Ч    ч      // 2  Р С Т У Ф Х Г Ч
126 126
                0xac,0xe2,0xad,0xae,0x62,0xaf,0xb0,0xb1,   //    Ш Щ Ъ Ы Ь Э Ю Я
127
-  //            Ш    Щ    Ъ    Ы    b    Э    Ю    Я      // 3  а б в г д е ж з
127
+             // Ш    Щ    Ъ    Ы    b    Э    Ю    Я      // 3  а б в г д е ж з
128 128
                0x61,0xb2,0xb3,0xb4,0xe3,0x65,0xb6,0xb7,   //    и й к л м н о п
129
-  //            a   б->ё  в    г    д    e    ж    з      // 4  р с т у ф х ц ч
129
+             // a   б->ё  в    г    д    e    ж    з      // 4  р с т у ф х ц ч
130 130
                0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0x6f,0xbe,   //    ш щ ъ ы ь э ю я
131
-  //            и    й    к    л    м    н    o    п      // 5  ѐ ё ђ ѓ є ѕ і ї
131
+             // и    й    к    л    м    н    o    п      // 5  ѐ ё ђ ѓ є ѕ і ї
132 132
                0x70,0x63,0xbf,0x79,0xe4,0x78,0xe5,0xc0,   //    ј љ њ ћ ќ ѝ ў џ
133
-  //            p    c    т    y    ф    x    ц    ч      // 6  Ѡ ѡ Ѣ ѣ Ѥ ѥ Ѧ ѧ
133
+             // p    c    т    y    ф    x    ц    ч      // 6  Ѡ ѡ Ѣ ѣ Ѥ ѥ Ѧ ѧ
134 134
                0xc1,0xe6,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7    //    Ѫ ѩ Ѫ ѫ Ѭ ѭ Ѯ ѯ
135
-  //            ш    щ    ъ    ы    ь    э    ю    я      // 7  Ѱ ѱ Ѳ ѳ Ѵ ѵ Ѷ ѷ
135
+             // ш    щ    ъ    ы    ь    э    ю    я      // 7  Ѱ ѱ Ѳ ѳ Ѵ ѵ Ѷ ѷ
136 136
              };                                           //    ѻ ѹ Ѻ ѻ Ѽ ѽ Ѿ ѿ
137 137
     #elif ENABLED(MAPPER_C2C3)
138 138
       #error( "Western languages on a cyrillic display makes no sense. There are no matching symbols." );
@@ -140,8 +140,8 @@
140 140
       #error( "Katakana on a cyrillic display makes no sense. There are no matching symbols." );
141 141
     #endif
142 142
   #else
143
-    #error("Something went wrong in the selection of DISPLAY_CHARSET_HD44780's");
144
-  #endif // DISPLAY_CHARSET_HD44780_CYRILLIC
143
+    #error("Something went wrong in the setting of DISPLAY_CHARSET_HD44780");
144
+  #endif // DISPLAY_CHARSET_HD44780
145 145
 #endif // SIMULATE_ROMFONT
146 146
 
147 147
 #if ENABLED(MAPPER_NON)

Loading…
Cancel
Save