Skip to content

Updated cursor.ino #3135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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