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,12 +1,12 @@
#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() {
set_pins();