Change C++ code style: put curly brace on the same line

This commit is contained in:
Oleg Kalachev
2023-12-29 18:56:25 +03:00
parent 645b148564
commit d2296fea76
19 changed files with 65 additions and 130 deletions

View File

@@ -5,17 +5,14 @@
#define BLINK_PERIOD 500000
void setupLED()
{
void setupLED() {
pinMode(LED_BUILTIN, OUTPUT);
}
void setLED(bool on)
{
void setLED(bool on) {
digitalWrite(LED_BUILTIN, on ? HIGH : LOW);
}
void blinkLED()
{
void blinkLED() {
setLED(micros() / BLINK_PERIOD % 2);
}