Examples: mass code format. See example_formatter.conf
This commit is contained in:
@@ -21,12 +21,12 @@
|
|||||||
* ends to +5V and ground
|
* ends to +5V and ground
|
||||||
* wiper to LCD VO pin (pin 3)
|
* wiper to LCD VO pin (pin 3)
|
||||||
* 10K poterntiometer on pin A0
|
* 10K poterntiometer on pin A0
|
||||||
|
|
||||||
created 21 Mar 2011
|
created 21 Mar 2011
|
||||||
by Tom Igoe
|
by Tom Igoe
|
||||||
modified 11 Nov 2013
|
modified 11 Nov 2013
|
||||||
by Scott Fitzgerald
|
by Scott Fitzgerald
|
||||||
|
|
||||||
Based on Adafruit's example at
|
Based on Adafruit's example at
|
||||||
https://github.com/adafruit/SPI_VFD/blob/master/examples/createChar/createChar.pde
|
https://github.com/adafruit/SPI_VFD/blob/master/examples/createChar/createChar.pde
|
||||||
|
|
||||||
@@ -101,9 +101,9 @@ byte armsUp[8] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void setup() {
|
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);
|
lcd.begin(16, 2);
|
||||||
|
|
||||||
// create a new character
|
// create a new character
|
||||||
lcd.createChar(0, heart);
|
lcd.createChar(0, heart);
|
||||||
// create a new character
|
// create a new character
|
||||||
@@ -116,7 +116,7 @@ void setup() {
|
|||||||
lcd.createChar(4, armsUp);
|
lcd.createChar(4, armsUp);
|
||||||
|
|
||||||
// Print a message to the lcd.
|
// 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.write(byte(0)); // when calling lcd.write() '0' must be cast as a byte
|
||||||
lcd.print(" Arduino! ");
|
lcd.print(" Arduino! ");
|
||||||
lcd.write((byte) 1);
|
lcd.write((byte) 1);
|
||||||
|
|||||||
@@ -48,8 +48,7 @@ void setup() {
|
|||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop() {
|
||||||
{
|
|
||||||
// when characters arrive over the serial port...
|
// when characters arrive over the serial port...
|
||||||
if (Serial.available()) {
|
if (Serial.available()) {
|
||||||
// wait a bit for the entire message to arrive
|
// wait a bit for the entire message to arrive
|
||||||
|
|||||||
Reference in New Issue
Block a user