-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from Legion2/dev
Version 0.11.0
- Loading branch information
Showing
54 changed files
with
1,319 additions
and
1,374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 120 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: ForContinuationAndIndentation | ||
AccessModifierOffset: -4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = true | ||
|
||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Check Code Format | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Check src format | ||
uses: DoozyX/[email protected] | ||
with: | ||
source: './src' | ||
extensions: 'h,cpp' | ||
clangFormatVersion: 9 | ||
- name: Check examples format | ||
uses: DoozyX/[email protected] | ||
with: | ||
source: './examples' | ||
extensions: 'h,cpp,ino' | ||
clangFormatVersion: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,85 +2,65 @@ on: [push, pull_request] | |
name: Test | ||
jobs: | ||
test: | ||
name: Test ${{ matrix.sketch }} for ${{ matrix.board }} | ||
name: Test for ${{ matrix.board }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
sketch: [LightingNodePRO, SingleStripLightingNodePRO, CommanderPRO, DeviceIDTool, RepeatAndScale, TransformLLFansFormatToStrip, LS100, LightingNodeCORE, NonAddressable, AmbientBacklight] | ||
board: ["arduino:avr:leonardo", "arduino:avr:micro", "SparkFun:avr:promicro:cpu=16MHzatmega32U4"] | ||
board: | ||
[ | ||
"Legion2:avr:leonardoclp", | ||
"Legion2:avr:promicro5vclp", | ||
"Legion2:avr:promicro3vclp", | ||
] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install FastLED | ||
uses: Legion2/download-release-action@master | ||
with: | ||
repository: FastLED/FastLED | ||
tag: '3.2.0' | ||
path: libraries | ||
- name: Install SparkFun boards | ||
if: contains(matrix.board, 'SparkFun') | ||
run: | | ||
mkdir -p hardware/SparkFun | ||
cd hardware/SparkFun | ||
wget https://github.com/sparkfun/Arduino_Boards/raw/master/IDE_Board_Manager/sparkfunboards.1.1.5.tar.bz2 | ||
tar -xvjf sparkfunboards.1.1.5.tar.bz2 | ||
rm sparkfunboards.1.1.5.tar.bz2 | ||
mv avr-1.1.5 avr | ||
- name: Build ${{ matrix.sketch }} for ${{ matrix.board }} | ||
uses: Legion2/[email protected] | ||
with: | ||
board: ${{ matrix.board }} | ||
sketch: ./examples/${{ matrix.sketch }}/${{ matrix.sketch }}.ino | ||
- uses: actions/checkout@master | ||
- name: Build for ${{ matrix.board }} | ||
uses: ArminJo/[email protected] | ||
with: | ||
arduino-board-fqbn: ${{ matrix.board }} | ||
platform-url: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json,https://raw.githubusercontent.com/Legion2/CorsairLightingProtocolBoards/master/package_Legion2_CorsairLightingProtocolBoards_index.json | ||
arduino-platform: arduino:[email protected],SparkFun:[email protected],Legion2:[email protected] | ||
required-libraries: [email protected] | ||
sketch-names: LightingNodePRO.ino, | ||
SingleStripLightingNodePRO.ino, | ||
CommanderPRO.ino, | ||
DeviceIDTool.ino, | ||
RepeatAndScale.ino, | ||
TransformLLFansFormatToStrip.ino, | ||
LS100.ino, | ||
LightingNodeCORE.ino, | ||
NonAddressable.ino, | ||
AmbientBacklight.ino, | ||
DebugSketch.ino | ||
examples-build-properties: '{"DebugSketch": "-DDEBUG -DVERBOSE -DPRINT_COMMAND=true -DPRINT_RESPONSE=true -DPRINT_LOOP=true -DPRINT_UPDATE=true"}' | ||
testUnoMega: | ||
name: Test UnoMega ${{ matrix.sketch }} for ${{ matrix.board }} | ||
name: Test UnoMega sketches for ${{ matrix.board }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
sketch: [HoodLoader2UnoMegaController] | ||
board: ["arduino:avr:uno", "arduino:avr:mega:cpu=atmega2560"] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install FastLED | ||
uses: Legion2/download-release-action@master | ||
with: | ||
repository: FastLED/FastLED | ||
tag: '3.2.0' | ||
path: libraries | ||
- name: Build ${{ matrix.sketch }} for ${{ matrix.board }} | ||
uses: Legion2/[email protected] | ||
with: | ||
board: ${{ matrix.board }} | ||
sketch: ./examples/${{ matrix.sketch }}/${{ matrix.sketch }}.ino | ||
- uses: actions/checkout@master | ||
- name: Build for ${{ matrix.board }} | ||
uses: ArminJo/[email protected] | ||
with: | ||
arduino-board-fqbn: ${{ matrix.board }} | ||
arduino-platform: arduino:[email protected] | ||
required-libraries: [email protected] | ||
sketch-names: HoodLoader2UnoMegaController.ino | ||
test16u2: | ||
name: Test 16u2 ${{ matrix.sketch }} for ${{ matrix.board }} | ||
name: Test 16u2 sketch for ${{ matrix.board }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
sketch: [HoodLoader2CLPBridge] | ||
board: ["HoodLoader2:avr:HoodLoader2atmega16u2:board=uno", "HoodLoader2:avr:HoodLoader2atmega16u2:board=mega2560"] | ||
board: ["Legion2:avr:HoodLoader2atmega16u2clp"] | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install FastLED | ||
uses: Legion2/download-release-action@master | ||
with: | ||
repository: FastLED/FastLED | ||
tag: '3.2.0' | ||
path: libraries | ||
- name: Download HoodLoader2 | ||
uses: Legion2/download-release-action@master | ||
with: | ||
repository: NicoHood/HoodLoader2 | ||
tag: '2.0.5' | ||
path: hardware/HoodLoader2 | ||
file: '2.0.5-boards_manager.zip' | ||
- name: Install HoodLoader2 | ||
run: | | ||
cd hardware/HoodLoader2 | ||
sudo mv 2.0.5-boards_manager.zip some.zip | ||
sudo unzip some.zip | ||
sudo rm some.zip | ||
sudo mv * avr | ||
- name: Build ${{ matrix.sketch }} for ${{ matrix.board }} | ||
uses: Legion2/[email protected] | ||
with: | ||
board: ${{ matrix.board }} | ||
sketch: ./examples/${{ matrix.sketch }}/${{ matrix.sketch }}.ino | ||
- uses: actions/checkout@master | ||
- name: Build for ${{ matrix.board }} | ||
uses: ArminJo/[email protected] | ||
with: | ||
arduino-board-fqbn: ${{ matrix.board }} | ||
platform-url: https://raw.githubusercontent.com/NicoHood/HoodLoader2/master/package_NicoHood_HoodLoader2_index.json,https://raw.githubusercontent.com/Legion2/CorsairLightingProtocolBoards/master/package_Legion2_CorsairLightingProtocolBoards_index.json | ||
arduino-platform: arduino:[email protected],HoodLoader2:[email protected],Legion2:[email protected] | ||
required-libraries: [email protected] | ||
sketch-names: HoodLoader2CLPBridge.ino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,3 +272,7 @@ __vm/ | |
|
||
# VS Code settings | ||
.vscode/ | ||
|
||
# Arduino CLI | ||
*.elf | ||
*.hex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 120 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: ForContinuationAndIndentation | ||
AccessModifierOffset: -4 | ||
|
||
AllowShortBlocksOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false | ||
AllowShortLambdasOnASingleLine: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.