File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libraries/LiquidCrystal/examples/setCursor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
can usually tell them by the 16-pin interface.
8
8
9
9
This sketch prints to all the positions of the LCD using the
10
- setCursor(0 method:
10
+ setCursor() method:
11
11
12
12
The circuit:
13
13
* LCD RS pin to digital pin 12
@@ -56,9 +56,9 @@ void loop() {
56
56
// loop from ASCII 'a' to ASCII 'z':
57
57
for (int thisLetter = ' a' ; thisLetter <= ' z' ; thisLetter++) {
58
58
// loop over the columns:
59
- for (int thisCol = 0 ; thisCol < numRows; thisCol ++) {
59
+ for (int thisRow = 0 ; thisRow < numRows; thisRow ++) {
60
60
// loop over the rows:
61
- for (int thisRow = 0 ; thisRow < numCols; thisRow ++) {
61
+ for (int thisCol = 0 ; thisCol < numCols; thisCol ++) {
62
62
// set the cursor position:
63
63
lcd.setCursor (thisCol, thisRow);
64
64
// print the letter:
You can’t perform that action at this time.
0 commit comments