Skip to content

Commit deb9918

Browse files
Minor linefeed cleanup
1 parent d67fa53 commit deb9918

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

libraries/esp8266/examples/SigmaDeltaDemo/SigmaDeltaDemo.ino

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,41 @@ void setup() {
88
pinMode(LED_BUILTIN, OUTPUT); // blinkie & sigma-delta mix
99
uint32_t reqFreq = 1000;
1010
uint32_t realFreq;
11-
11+
1212
realFreq = sigmaDeltaSetup(0, reqFreq); // chose a low frequency
1313

1414
Serial.println();
1515
Serial.println("Start Sigma Delta Example\n");
1616
Serial.printf("Frequency = %u\n", realFreq);
17-
17+
1818
}
1919

2020
void loop() {
21-
21+
2222
uint8_t duty, iRepeat;
23-
23+
2424
Serial.println("Attaching the built in led to the sigma delta source now\n");
2525
Serial.printf("Current duty = %i, prescaler = %i\n", sigmaDeltaRead(), sigmaDeltaGetPrescaler());
2626
sigmaDeltaAttachPin(LED_BUILTIN);
27-
28-
Serial.println("dimming builtin led...\n");
27+
28+
Serial.println("Dimming builtin led...\n");
2929
for (iRepeat = 0; iRepeat < 10; iRepeat++) {
3030
for (duty = 0; duty < 255; duty = duty + 5) {
3131
sigmaDeltaWrite(0, duty);
3232
delay(10);
3333
}
34-
34+
3535
for (duty = 255; duty > 0; duty = duty - 5) {
3636
sigmaDeltaWrite(0, duty);
3737
delay(10);
3838
}
39-
39+
4040
}
41-
Serial.println("detaching builtin led & playing a blinkie\n");
41+
42+
Serial.println("Detaching builtin led & playing a blinkie\n");
4243
sigmaDeltaDetachPin(LED_BUILTIN);
4344
for (iRepeat = 0; iRepeat < 20; iRepeat++) {
4445
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
4546
delay(500);
46-
}
47+
}
4748
}

0 commit comments

Comments
 (0)