|
3 | 3 |
|
4 | 4 | Demonstrates how to add custom characters on an LCD display.
|
5 | 5 | The LiquidCrystal library works with all LCD displays that are
|
6 |
| - compatible with the Hitachi HD44780 driver. There are many of |
| 6 | + compatible with the Hitachi HD44780 driver. There are many of |
7 | 7 | them out there, and you can usually tell them by the 16-pin interface.
|
8 | 8 |
|
9 | 9 | This sketch prints "I <heart> Arduino!" and a little dancing man
|
|
20 | 20 | * 10K potentiometer:
|
21 | 21 | * ends to +5V and ground
|
22 | 22 | * wiper to LCD VO pin (pin 3)
|
23 |
| - * 10K poterntiometer on pin A0 |
| 23 | + * 10K potentiometer on pin A0 |
24 | 24 |
|
25 | 25 | created 21 Mar 2011
|
26 | 26 | by Tom Igoe
|
|
35 | 35 | https://github.com/adafruit/SPI_VFD/blob/master/examples/createChar/createChar.pde
|
36 | 36 |
|
37 | 37 | This example code is in the public domain.
|
38 |
| - http://www.arduino.cc/en/Tutorial/LiquidCrystalCustomCharacter |
39 |
| -
|
| 38 | + |
40 | 39 | Also useful:
|
41 | 40 | https://maxpromer.github.io/LCD-Character-Creator/
|
42 | 41 |
|
|
46 | 45 | #include <LiquidCrystal.h>
|
47 | 46 |
|
48 | 47 | // initialize the library by associating any needed LCD interface pin
|
49 |
| -// with the arduino pin number it is connected to |
| 48 | +// with the Arduino pin number it is connected to |
50 | 49 | const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
|
51 | 50 | LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
|
52 | 51 |
|
@@ -124,7 +123,7 @@ void setup() {
|
124 | 123 | // set the cursor to the top left
|
125 | 124 | lcd.setCursor(0, 0);
|
126 | 125 |
|
127 |
| - // Print a message to the lcd. |
| 126 | + // Print a message to the LCD. |
128 | 127 | lcd.print("I ");
|
129 | 128 | lcd.write(byte(0)); // when calling lcd.write() '0' must be cast as a byte
|
130 | 129 | lcd.print(" Arduino! ");
|
|
0 commit comments