From 7815f03c843b91ff7e12b7437dc8ae5edd6d104c Mon Sep 17 00:00:00 2001 From: jazzpi Date: Sat, 17 Jul 2021 20:09:02 +0200 Subject: [PATCH] Add .clang-format --- .clang-format | 7 +++++++ src/18stw.cpp | 28 ++++++++++++++-------------- 2 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..971b9fb --- /dev/null +++ b/.clang-format @@ -0,0 +1,7 @@ +BasedOnStyle: LLVM +IndentWidth: 2 +ColumnLimit: 80 +# Derive pointer alignment +DerivePointerAlignment: true +# As a fallback: pointers to the type (`int* x` instead of `int *x`) +PointerAlignment: Left \ No newline at end of file diff --git a/src/18stw.cpp b/src/18stw.cpp index 446956c..fb56a1d 100644 --- a/src/18stw.cpp +++ b/src/18stw.cpp @@ -1,25 +1,25 @@ #include -#include +#include #include -#include -#include #include #include -#include +#include +#include #include +#include -void setup(){ +void setup() { set_pins(); - //Serial.begin(9600); - //Serial.println("Hi"); + // Serial.begin(9600); + // Serial.println("Hi"); Init_Can_0(); init_display(); - } - -void loop() { - //read_buttons(); //in Send_0x110() aufgerufen - //read_rotary(); //in Send_0x110() aufgerufen - //Send_0x110(); //alle 10 ms als interrupt aufgerufen +} + +void loop() { + // read_buttons(); //in Send_0x110() aufgerufen + // read_rotary(); //in Send_0x110() aufgerufen + // Send_0x110(); //alle 10 ms als interrupt aufgerufen update_LED(); update_display(); -} +} \ No newline at end of file