Skip to content

Commit

Permalink
Updated cursor.ino
Browse files Browse the repository at this point in the history
Previous commit broke the actual functionality. The code was confusing and worked until the previous commit.
The changes make it logically and functionally correct.
  • Loading branch information
ish6614 committed May 14, 2015
1 parent 54da4d6 commit c3d3016
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/LiquidCrystal/examples/setCursor/setCursor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
can usually tell them by the 16-pin interface.
This sketch prints to all the positions of the LCD using the
setCursor(0 method:
setCursor() method:
The circuit:
* LCD RS pin to digital pin 12
Expand Down Expand Up @@ -56,9 +56,9 @@ void loop() {
// loop from ASCII 'a' to ASCII 'z':
for (int thisLetter = 'a'; thisLetter <= 'z'; thisLetter++) {
// loop over the columns:
for (int thisCol = 0; thisCol < numRows; thisCol++) {
for (int thisRow = 0; thisRow < numRows; thisRow++) {
// loop over the rows:
for (int thisRow = 0; thisRow < numCols; thisRow++) {
for (int thisCol = 0; thisCol < numCols; thisCol++) {
// set the cursor position:
lcd.setCursor(thisCol, thisRow);
// print the letter:
Expand Down

0 comments on commit c3d3016

Please sign in to comment.