Преглед на файлове

Applied thinkyheads corrections from 2015-03-17

AnHardt преди 9 години
родител
ревизия
1883e1bb60

+ 2
- 2
Marlin/Configuration.h Целия файл

@@ -558,10 +558,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
558 558
 
559 559
 // Chose ONE of the next three charsets. This has to match your hardware. In case of a full graphic display this information is not important.
560 560
 // To find out what type you have - compile with (test) - upload - click to get the menu. You'll see two typical lines from the upper half of the charset.
561
-// Se also documentation/LCDLanguageFont.md
561
+// See also documentation/LCDLanguageFont.md
562 562
   #define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
563 563
   //#define DISPLAY_CHARSET_HD44780_WESTERN
564
-  //#define DISPLAY_CHARSET_HD44780_CYRILIC
564
+  //#define DISPLAY_CHARSET_HD44780_CYRILLIC
565 565
 
566 566
 //#define ULTRA_LCD  //general LCD support, also 16x2
567 567
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)

+ 1
- 3
Marlin/dogm_lcd_implementation.h Целия файл

@@ -14,8 +14,6 @@
14 14
 #ifndef DOGM_LCD_IMPLEMENTATION_H
15 15
 #define DOGM_LCD_IMPLEMENTATION_H
16 16
 
17
-#define MARLIN_VERSION "1.0.2"
18
-
19 17
 /**
20 18
  * Implementation of the LCD display routines for a DOGM128 graphic display. These are common LCD 128x64 pixel graphic displays.
21 19
  */
@@ -71,7 +69,7 @@
71 69
   #elif defined( DISPLAY_CHARSET_HD44780_WESTERN )
72 70
     #include "dogm_font_data_HD44780_W.h"
73 71
     #define FONT_MENU_NAME HD44780_W_5x7
74
-  #elif defined( DISPLAY_CHARSET_HD44780_CYRILIC )
72
+  #elif defined( DISPLAY_CHARSET_HD44780_CYRILLIC )
75 73
     #include "dogm_font_data_HD44780_C.h"
76 74
     #define FONT_MENU_NAME HD44780_C_5x7
77 75
   #else // fall-back

+ 2
- 2
Marlin/language.h Целия файл

@@ -11,7 +11,7 @@
11 11
 //
12 12
 //   ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h"
13 13
 //   ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS
14
-// Se also documentation/LCDLanguageFont.md
14
+// See also documentation/LCDLanguageFont.md
15 15
 
16 16
 // Languages
17 17
 // en       English
@@ -203,7 +203,7 @@
203 203
 // LCD Menu Messages
204 204
 
205 205
 
206
-#if !(defined( DISPLAY_CHARSET_HD44780_JAPAN ) || defined( DISPLAY_CHARSET_HD44780_WESTERN ) || defined( DISPLAY_CHARSET_HD44780_CYRILIC ))
206
+#if !(defined( DISPLAY_CHARSET_HD44780_JAPAN ) || defined( DISPLAY_CHARSET_HD44780_WESTERN ) || defined( DISPLAY_CHARSET_HD44780_CYRILLIC ))
207 207
   #define DISPLAY_CHARSET_HD44780_JAPAN
208 208
 #endif
209 209
 

+ 1
- 1
Marlin/language_an.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Aragonese
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_AN_H

+ 1
- 1
Marlin/language_ca.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Catalan
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_CA_H

+ 1
- 1
Marlin/language_de.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * German
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_DE_H

+ 1
- 1
Marlin/language_es.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Spanish
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_ES_H

+ 1
- 1
Marlin/language_eu.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Basque-Euskera
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_EU_H

+ 1
- 1
Marlin/language_fi.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Finnish
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_FI_H

+ 1
- 1
Marlin/language_fr.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * French
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_FR_H

+ 1
- 1
Marlin/language_it.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Italian
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_IT_H

+ 1
- 1
Marlin/language_kana.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Japanese (Kana)
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
  

+ 1
- 1
Marlin/language_kana_utf8.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Japanese (Kana UTF8 version)
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
  

+ 1
- 1
Marlin/language_nl.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Dutch
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_NL_H

+ 1
- 1
Marlin/language_pl.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Polish
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_PL_H

+ 1
- 1
Marlin/language_pt-br.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Portuguese (Brazil)
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_PT_BR_H

+ 1
- 1
Marlin/language_pt.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Portuguese
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_PT_H

+ 1
- 1
Marlin/language_ru.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * Russian
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_RU_H

+ 1
- 1
Marlin/language_test.h Целия файл

@@ -2,7 +2,7 @@
2 2
  * TEST
3 3
  *
4 4
  * LCD Menu Messages
5
- * Se also documentation/LCDLanguageFont.md
5
+ * See also documentation/LCDLanguageFont.md
6 6
  *
7 7
  */
8 8
 #ifndef LANGUAGE_TEST_H

+ 22
- 22
Marlin/utf_mapper.h Целия файл

@@ -4,9 +4,9 @@
4 4
 #include  "language.h"
5 5
 
6 6
 #ifdef DOGLCD
7
-  #define HARDWAERE_CHAR_OUT u8g.print
7
+  #define HARDWARE_CHAR_OUT u8g.print
8 8
 #else
9
-  #define HARDWAERE_CHAR_OUT lcd.write
9
+  #define HARDWARE_CHAR_OUT lcd.write
10 10
 #endif
11 11
 
12 12
 #if !(defined( SIMULATE_ROMFONT )) && defined( DOGLCD )
@@ -90,7 +90,7 @@
90 90
       #error( "Katakana on a western display makes no sense. There are no matching symbols." );
91 91
     #endif
92 92
 
93
-  #elif defined( DISPLAY_CHARSET_HD44780_CYRILIC )
93
+  #elif defined( DISPLAY_CHARSET_HD44780_CYRILLIC )
94 94
     #if defined( MAPPER_D0D1 )
95 95
       #define MAPPER_D0D1_MOD
96 96
       // it is a Russian alphabet translation
@@ -120,12 +120,12 @@
120 120
     #endif
121 121
   #else
122 122
     #error("Something went wrong in the selection of DISPLAY_CHARSET_HD44780's");
123
-  #endif // DISPLAY_CHARSET_HD44780_CYRILIC
123
+  #endif // DISPLAY_CHARSET_HD44780_CYRILLIC
124 124
 #endif // SIMULATE_ROMFONT
125 125
 
126 126
 #if defined( MAPPER_NON )
127 127
   char charset_mapper(char c){
128
-    HARDWAERE_CHAR_OUT( c );
128
+    HARDWARE_CHAR_OUT( c );
129 129
     return 1;
130 130
   }
131 131
 #elif defined( MAPPER_C2C3 )
@@ -142,17 +142,17 @@
142 142
       else if (seen_c2){
143 143
         d &= 0x3f;
144 144
         #ifndef MAPPER_ONE_TO_ONE
145
-          HARDWAERE_CHAR_OUT( (char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x20 ) );
145
+          HARDWARE_CHAR_OUT( (char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x20 ) );
146 146
         #else
147
-          HARDWAERE_CHAR_OUT( (char) (0x80 + ( utf_hi_char << 6 ) + d) ) ;
147
+          HARDWARE_CHAR_OUT( (char) (0x80 + ( utf_hi_char << 6 ) + d) ) ;
148 148
         #endif
149 149
       }
150 150
       else {
151
-          HARDWAERE_CHAR_OUT('?');
151
+          HARDWARE_CHAR_OUT('?');
152 152
       }
153 153
     }
154 154
     else {
155
-      HARDWAERE_CHAR_OUT((char) c );
155
+      HARDWARE_CHAR_OUT((char) c );
156 156
     }
157 157
     seen_c2 = false;
158 158
     return 1;
@@ -172,18 +172,18 @@
172 172
       } else if (seen_d5) {
173 173
           d &= 0x3f;
174 174
           if ( !utf_hi_char && ( d == 1 )) {
175
-            HARDWAERE_CHAR_OUT((char) 0xa2 ); // Ё
175
+            HARDWARE_CHAR_OUT((char) 0xa2 ); // Ё
176 176
         } else if ((utf_hi_char == 1) && (d == 0x11)) {
177
-            HARDWAERE_CHAR_OUT((char) 0xb5 ); // ё
177
+            HARDWARE_CHAR_OUT((char) 0xb5 ); // ё
178 178
           } else {
179
-            HARDWAERE_CHAR_OUT((char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x10 ) );
179
+            HARDWARE_CHAR_OUT((char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x10 ) );
180 180
           }
181 181
         }
182 182
         else {
183
-          HARDWAERE_CHAR_OUT('?');
183
+          HARDWARE_CHAR_OUT('?');
184 184
         }
185 185
     } else {
186
-      HARDWAERE_CHAR_OUT((char) c );
186
+      HARDWARE_CHAR_OUT((char) c );
187 187
     }
188 188
     seen_d5 = false;
189 189
     return 1;
@@ -201,15 +201,15 @@
201 201
       } else if (seen_d5) {
202 202
           d &= 0x3fu;
203 203
         #ifndef MAPPER_ONE_TO_ONE
204
-          HARDWAERE_CHAR_OUT( (char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x20 ) );
204
+          HARDWARE_CHAR_OUT( (char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x20 ) );
205 205
         #else
206
-          HARDWAERE_CHAR_OUT( (char) (0xa0u + ( utf_hi_char << 6 ) + d ) ) ;
206
+          HARDWARE_CHAR_OUT( (char) (0xa0u + ( utf_hi_char << 6 ) + d ) ) ;
207 207
         #endif
208 208
       } else {
209
-        HARDWAERE_CHAR_OUT('?');
209
+        HARDWARE_CHAR_OUT('?');
210 210
       }
211 211
     } else {
212
-      HARDWAERE_CHAR_OUT((char) c );
212
+      HARDWARE_CHAR_OUT((char) c );
213 213
     }
214 214
     seen_d5 = false;
215 215
     return 1;
@@ -231,15 +231,15 @@
231 231
       } else if ((seen_e3 == true) && (seen_82_83 == true)){
232 232
         d &= 0x3f;
233 233
         #ifndef MAPPER_ONE_TO_ONE
234
-          HARDWAERE_CHAR_OUT( (char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x20 ) );
234
+          HARDWARE_CHAR_OUT( (char) pgm_read_byte_near( utf_recode + d + ( utf_hi_char << 6 ) - 0x20 ) );
235 235
         #else
236
-          HARDWAERE_CHAR_OUT( (char) (0x80 + ( utf_hi_char << 6 ) + d ) ) ;
236
+          HARDWARE_CHAR_OUT( (char) (0x80 + ( utf_hi_char << 6 ) + d ) ) ;
237 237
         #endif
238 238
       } else {
239
-        HARDWAERE_CHAR_OUT((char) '?' );
239
+        HARDWARE_CHAR_OUT((char) '?' );
240 240
       }
241 241
     } else {
242
-      HARDWAERE_CHAR_OUT((char) c );
242
+      HARDWARE_CHAR_OUT((char) c );
243 243
     }
244 244
     seen_e3 = false;
245 245
     seen_82_83 = false;

Loading…
Отказ
Запис