Skip to content

Commit 61cc4dd

Browse files
author
Federico Fissore
committed
Examples: mass code format. See example_formatter.conf
1 parent c16e8bd commit 61cc4dd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/MotorKnob/MotorKnob.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ Stepper stepper(STEPS, 8, 9, 10, 11);
2121
// the previous reading from the analog input
2222
int previous = 0;
2323

24-
void setup()
25-
{
24+
void setup() {
2625
// set the speed of the motor to 30 RPMs
2726
stepper.setSpeed(30);
2827
}
2928

30-
void loop()
31-
{
29+
void loop() {
3230
// get the sensor value
3331
int val = analogRead(0);
3432

examples/stepper_oneStepAtATime/stepper_oneStepAtATime.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void setup() {
3636
void loop() {
3737
// step one step:
3838
myStepper.step(1);
39-
Serial.print("steps:" );
39+
Serial.print("steps:");
4040
Serial.println(stepCount);
4141
stepCount++;
4242
delay(500);

0 commit comments

Comments
 (0)