Skip to content
Snippets Groups Projects
Commit 4ed61916 authored by Federico Fissore's avatar Federico Fissore
Browse files

Examples: mass code format. See example_formatter.conf

parent e002084a
No related branches found
No related tags found
No related merge requests found
......@@ -21,12 +21,12 @@
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
* 10K poterntiometer on pin A0
created 21 Mar 2011
by Tom Igoe
modified 11 Nov 2013
by Scott Fitzgerald
Based on Adafruit's example at
https://github.com/adafruit/SPI_VFD/blob/master/examples/createChar/createChar.pde
......@@ -101,9 +101,9 @@ byte armsUp[8] = {
};
void setup() {
// initialize LCD and set up the number of columns and rows:
// initialize LCD and set up the number of columns and rows:
lcd.begin(16, 2);
// create a new character
lcd.createChar(0, heart);
// create a new character
......@@ -116,7 +116,7 @@ void setup() {
lcd.createChar(4, armsUp);
// Print a message to the lcd.
lcd.print("I ");
lcd.print("I ");
lcd.write(byte(0)); // when calling lcd.write() '0' must be cast as a byte
lcd.print(" Arduino! ");
lcd.write((byte) 1);
......
......@@ -48,8 +48,7 @@ void setup() {
Serial.begin(9600);
}
void loop()
{
void loop() {
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment