mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 13:36:43 +00:00
Change C++ code style: put curly brace on the same line
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user