Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466

Dependencies:   ssd1331

Committer:
kadonotakashi
Date:
Wed Oct 10 00:33:53 2018 +0000
Revision:
0:8fdf9a60065b
how to make mbed librry

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kadonotakashi 0:8fdf9a60065b 1 # Mbed OS code style definition file for astyle
kadonotakashi 0:8fdf9a60065b 2
kadonotakashi 0:8fdf9a60065b 3 # Don't create backup files, let git handle it
kadonotakashi 0:8fdf9a60065b 4 suffix=none
kadonotakashi 0:8fdf9a60065b 5
kadonotakashi 0:8fdf9a60065b 6 # K&R style
kadonotakashi 0:8fdf9a60065b 7 style=kr
kadonotakashi 0:8fdf9a60065b 8
kadonotakashi 0:8fdf9a60065b 9 # 1 TBS addition to k&r, add braces to one liners
kadonotakashi 0:8fdf9a60065b 10 # Use -j as it was changed in astyle from brackets to braces, this way it is compatible with older astyle versions
kadonotakashi 0:8fdf9a60065b 11 -j
kadonotakashi 0:8fdf9a60065b 12
kadonotakashi 0:8fdf9a60065b 13 # 4 spaces, convert tabs to spaces
kadonotakashi 0:8fdf9a60065b 14 indent=spaces=4
kadonotakashi 0:8fdf9a60065b 15 convert-tabs
kadonotakashi 0:8fdf9a60065b 16
kadonotakashi 0:8fdf9a60065b 17 # Indent switches and cases
kadonotakashi 0:8fdf9a60065b 18 indent-switches
kadonotakashi 0:8fdf9a60065b 19
kadonotakashi 0:8fdf9a60065b 20 # Remove spaces in and around parentheses
kadonotakashi 0:8fdf9a60065b 21 unpad-paren
kadonotakashi 0:8fdf9a60065b 22
kadonotakashi 0:8fdf9a60065b 23 # Insert a space after if, while, for, and around operators
kadonotakashi 0:8fdf9a60065b 24 pad-header
kadonotakashi 0:8fdf9a60065b 25 pad-oper
kadonotakashi 0:8fdf9a60065b 26
kadonotakashi 0:8fdf9a60065b 27 # Pointer/reference operators go next to the name (on the right)
kadonotakashi 0:8fdf9a60065b 28 align-pointer=name
kadonotakashi 0:8fdf9a60065b 29 align-reference=name
kadonotakashi 0:8fdf9a60065b 30
kadonotakashi 0:8fdf9a60065b 31 # Attach { for classes and namespaces
kadonotakashi 0:8fdf9a60065b 32 attach-namespaces
kadonotakashi 0:8fdf9a60065b 33 attach-classes
kadonotakashi 0:8fdf9a60065b 34
kadonotakashi 0:8fdf9a60065b 35 # Extend longer lines, define maximum 120 value. This results in aligned code,
kadonotakashi 0:8fdf9a60065b 36 # otherwise the lines are broken and not consistent
kadonotakashi 0:8fdf9a60065b 37 max-continuation-indent=120