We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d57681c + c3d3016 commit 40c0741Copy full SHA for 40c0741
libraries/LiquidCrystal/examples/setCursor/setCursor.ino
@@ -7,7 +7,7 @@
7
can usually tell them by the 16-pin interface.
8
9
This sketch prints to all the positions of the LCD using the
10
- setCursor(0 method:
+ setCursor() method:
11
12
The circuit:
13
* LCD RS pin to digital pin 12
@@ -56,9 +56,9 @@ void loop() {
56
// loop from ASCII 'a' to ASCII 'z':
57
for (int thisLetter = 'a'; thisLetter <= 'z'; thisLetter++) {
58
// loop over the columns:
59
- for (int thisCol = 0; thisCol < numRows; thisCol++) {
+ for (int thisRow = 0; thisRow < numRows; thisRow++) {
60
// loop over the rows:
61
- for (int thisRow = 0; thisRow < numCols; thisRow++) {
+ for (int thisCol = 0; thisCol < numCols; thisCol++) {
62
// set the cursor position:
63
lcd.setCursor(thisCol, thisRow);
64
// print the letter:
0 commit comments