uncrustify libraries/AP_AnalogSource/examples/AnalogSource_Arduino/AnalogSource_Arduino.pde

This commit is contained in:
uncrustify 2012-08-16 23:08:47 -07:00 committed by Pat Hickey
parent 89dad7de7b
commit 5e7867f972

View File

@ -1,7 +1,7 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
/* /*
Example of AnalogSource Arduino * Example of AnalogSource Arduino
*/ */
#include <FastSerial.h> #include <FastSerial.h>
#include <AP_Math.h> #include <AP_Math.h>
@ -30,12 +30,12 @@ void setup()
void loop() void loop()
{ {
while (true) { while (true) {
delay(1000); delay(1000);
Serial.printf("Vcc: %u PIN0: %u PIN1: %u PIN1_avg: %u\n", Serial.printf("Vcc: %u PIN0: %u PIN1: %u PIN1_avg: %u\n",
(unsigned)vcc_source.read_vcc(), (unsigned)vcc_source.read_vcc(),
(unsigned)pin0.read_raw(), (unsigned)pin0.read_raw(),
(unsigned)pin1.read_raw(), (unsigned)pin1.read_raw(),
(unsigned)pin1.read_average()); (unsigned)pin1.read_average());
} }
} }