Add .clang-format

This commit is contained in:
jazzpi 2021-07-17 20:09:02 +02:00
parent beff90a10a
commit 7815f03c84
2 changed files with 21 additions and 14 deletions

7
.clang-format Normal file
View File

@ -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

View File

@ -1,25 +1,25 @@
#include <Arduino.h>
#include <FT18_STW_INIT.h>
#include <Bounce2.h>
#include <DueTimer.h>
#include <due_can.h>
#include <FT_2018_STW_CAN.h>
#include <EDIPTFT.h>
#include <FT18_STW_DISPLAY.h>
#include <Bounce2.h>
#include <FT18_STW_INIT.h>
#include <FT_2018_STW_CAN.h>
#include <RotaryEncoder.h>
#include <due_can.h>
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();
}
}