From d9b3a86e84b8335d7e48c340b20ec70a0ca3a921 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 6 Jul 2015 15:27:07 +0200 Subject: [PATCH] Serial plotter: added comment to AnalogReadSerial. Fixes #3451 --- .../AnalogReadSerial/AnalogReadSerial.ino | 5 ++-- examples_formatter.conf | 23 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/build/shared/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino b/build/shared/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino index f8e77f340..70848d63d 100644 --- a/build/shared/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino +++ b/build/shared/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino @@ -1,10 +1,11 @@ /* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. + Graphical representation of readings available using serial plotter (Tools > Serial Plotter menu) Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. - This example code is in the public domain. - */ + This example code is in the public domain. +*/ // the setup routine runs once when you press reset: void setup() { diff --git a/examples_formatter.conf b/examples_formatter.conf index 5dc587ac0..e006d1f2f 100644 --- a/examples_formatter.conf +++ b/examples_formatter.conf @@ -29,16 +29,17 @@ pad-header keep-one-line-statements style=java -xn -xc -xl -xk +attach-namespaces +attach-classes +attach-inlines +attach-extern-c indent-modifiers -N -L -xW -w -xw -U -j +indent-namespaces +indent-labels +indent-preproc-block +indent-preproc-define +indent-preproc-cond +unpad-paren +add-brackets +remove-comment-prefix