Skip to content

Commit ce0db23

Browse files
committed
Remove redundant spaces from comment text
Some redundant spaces were present in the comments Some of these followed a period. Although two spaces after a period were sometimes recommended in previous eras, modern practice is universally a single space: https://www.chicagomanualofstyle.org/qanda/data/faq/topics/OneSpaceorTwo/faq0006.html Regardless of whether it is correct according to standard practice, it might be reasonable to retain double spaces if this were a well established convention in the project. That is not the case here. The majority of the content uses only a single space, so the double spaces are inconsistent in addition to being incorrect. There were also some occurrences of redundant spaces within sentences, which is never correct.
1 parent 47f66d9 commit ce0db23

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

examples/Autoscroll/Autoscroll.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - Autoscroll
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/Blink/Blink.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - Blink
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/Cursor/Cursor.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
22
LiquidCrystal Library - Cursor
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.
88
99
This sketch prints "hello, world!" to the LCD and
10-
uses the cursor() and noCursor() methods to turn
10+
uses the cursor() and noCursor() methods to turn
1111
on and off the cursor.
1212
1313
The circuit:

examples/CustomCharacter/CustomCharacter.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - Custom Characters
33
4-
Demonstrates how to add custom characters on an LCD display.
4+
Demonstrates how to add custom characters on an LCD display.
55
The LiquidCrystal library works with all LCD displays that are
66
compatible with the Hitachi HD44780 driver. There are many of
77
them out there, and you can usually tell them by the 16-pin interface.

examples/Display/Display.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - display() and noDisplay()
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/HelloWorld/HelloWorld.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - Hello World
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/Scroll/Scroll.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - scrollDisplayLeft() and scrollDisplayRight()
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/SerialDisplay/SerialDisplay.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - Serial Input
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/TextDirection/TextDirection.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - TextDirection
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.

examples/setCursor/setCursor.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
LiquidCrystal Library - setCursor
33
4-
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
4+
Demonstrates the use of a 16x2 LCD display. The LiquidCrystal
55
library works with all LCD displays that are compatible with the
66
Hitachi HD44780 driver. There are many of them out there, and you
77
can usually tell them by the 16-pin interface.
@@ -46,7 +46,7 @@
4646
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
4747
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
4848

49-
// these constants won't change. But you can change the size of
49+
// these constants won't change. But you can change the size of
5050
// your LCD using them:
5151
const int numRows = 2;
5252
const int numCols = 16;

src/LiquidCrystal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class LiquidCrystal : public Print {
9090
void write8bits(uint8_t);
9191
void pulseEnable();
9292

93-
uint8_t _rs_pin; // LOW: command. HIGH: character.
94-
uint8_t _rw_pin; // LOW: write to LCD. HIGH: read from LCD.
93+
uint8_t _rs_pin; // LOW: command. HIGH: character.
94+
uint8_t _rw_pin; // LOW: write to LCD. HIGH: read from LCD.
9595
uint8_t _enable_pin; // activated by a HIGH pulse.
9696
uint8_t _data_pins[8];
9797

0 commit comments

Comments
 (0)