|
@@ -11,7 +11,7 @@
|
11
|
11
|
#include "WProgram.h"
|
12
|
12
|
#endif
|
13
|
13
|
|
14
|
|
-// it is a russian alphabet translation
|
|
14
|
+// it is a Russian alphabet translation
|
15
|
15
|
// except 0401 --> 0xa2 = ╗, 0451 --> 0xb5
|
16
|
16
|
const PROGMEM uint8_t utf_recode[] =
|
17
|
17
|
{ 0x41,0xa0,0x42,0xa1,0xe0,0x45,0xa3,0xa4,0xa5,0xa6,0x4b,0xa7,0x4d,0x48,0x4f,
|
|
@@ -115,7 +115,7 @@ void LiquidCrystalRus::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
|
115
|
115
|
|
116
|
116
|
// SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION!
|
117
|
117
|
// according to datasheet, we need at least 40ms after power rises above 2.7V
|
118
|
|
- // before sending commands. Arduino can turn on way befer 4.5V so we'll wait 50
|
|
118
|
+ // before sending commands. Arduino can turn on way before 4.5V so we'll wait 50
|
119
|
119
|
delayMicroseconds(50000);
|
120
|
120
|
// Now we pull both RS and R/W low to begin commands
|
121
|
121
|
digitalWrite(_rs_pin, LOW);
|
|
@@ -126,7 +126,7 @@ void LiquidCrystalRus::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
|
126
|
126
|
|
127
|
127
|
//put the LCD into 4 bit or 8 bit mode
|
128
|
128
|
if (! (_displayfunction & LCD_8BITMODE)) {
|
129
|
|
- // this is according to the hitachi HD44780 datasheet
|
|
129
|
+ // this is according to the Hitachi HD44780 datasheet
|
130
|
130
|
// figure 24, pg 46
|
131
|
131
|
|
132
|
132
|
// we start in 8bit mode, try to set 4 bit mode
|
|
@@ -144,7 +144,7 @@ void LiquidCrystalRus::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
|
144
|
144
|
// finally, set to 8-bit interface
|
145
|
145
|
writeNbits(0x02,4);
|
146
|
146
|
} else {
|
147
|
|
- // this is according to the hitachi HD44780 datasheet
|
|
147
|
+ // this is according to the Hitachi HD44780 datasheet
|
148
|
148
|
// page 45 figure 23
|
149
|
149
|
|
150
|
150
|
// Send function set command sequence
|
|
@@ -308,7 +308,7 @@ inline void LiquidCrystalRus::command(uint8_t value) {
|
308
|
308
|
}
|
309
|
309
|
} else send(out_char, HIGH);
|
310
|
310
|
#if defined(ARDUINO) && ARDUINO >= 100
|
311
|
|
- return 1; // assume sucess
|
|
311
|
+ return 1; // assume success
|
312
|
312
|
#endif
|
313
|
313
|
}
|
314
|
314
|
|