-
-
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 #77 from Legion2/dev
Version 0.8.0
- Loading branch information
Showing
44 changed files
with
2,950 additions
and
110 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,24 @@ | ||
name: Create Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
doxygen: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install doxygen | ||
run: sudo apt install doxygen graphviz | ||
- name: Run doxygen | ||
run: doxygen extra/doxygen.conf | ||
- name: Deploy to gh-pages | ||
uses: peaceiris/[email protected] | ||
env: | ||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: doxygen/html |
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 |
---|---|---|
|
@@ -267,3 +267,5 @@ __vm/ | |
*.vcxproj | ||
*.vcxproj.filters | ||
*.vcxitems | ||
|
||
/doxygen |
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,50 @@ | ||
/* | ||
Copyright 2019 Leon Kiefer | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
#include <CorsairLightingProtocol.h> | ||
#include <FastLED.h> | ||
|
||
#define DATA_PIN_CHANNEL_1 2 | ||
#define DATA_PIN_CHANNEL_2 3 | ||
|
||
CRGB ledsChannel1[60]; | ||
CRGB ledsChannel2[60]; | ||
|
||
const char mySerialNumber[] PROGMEM = "202B6949A967"; | ||
|
||
CorsairLightingFirmware firmware = corsairLightingNodePROFirmware(); | ||
FastLEDController ledController(true); | ||
CorsairLightingProtocolController cLP(&ledController, &firmware); | ||
CorsairLightingProtocolHID cHID(&cLP, mySerialNumber); | ||
|
||
void setup() { | ||
CLP::disableBuildInLEDs(); | ||
if (CLP::shouldReset(&firmware)) { | ||
CLP::reset(&firmware); | ||
ledController.reset(); | ||
} | ||
FastLED.addLeds<NEOPIXEL, DATA_PIN_CHANNEL_1>(ledsChannel1, 60); | ||
FastLED.addLeds<NEOPIXEL, DATA_PIN_CHANNEL_2>(ledsChannel2, 60); | ||
ledController.addLEDs(0, ledsChannel1, 60); | ||
ledController.addLEDs(1, ledsChannel2, 60); | ||
} | ||
|
||
void loop() { | ||
cHID.update(); | ||
|
||
if (ledController.updateLEDs()) { | ||
FastLED.show(); | ||
} | ||
} |
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 @@ | ||
# CorsairLightingProtocol build property overrides | ||
|
||
build.vid=0x1b1c | ||
build.pid=0x0c0b | ||
build.usb_product="Lighting Node PRO" | ||
build.usb_manufacturer="Corsair" |
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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
# build properties for Commander PRO | ||
# | ||
|
||
############################################################## | ||
|
||
build.vid=0x1b1c | ||
build.pid=0x0c10 | ||
build.usb_product="Commander PRO" | ||
build.usb_manufacturer="Corsair" | ||
|
||
#build.extra_flags={build.usb_flags} '-DSERIAL_NUMBER="FB66DF55421900F5"' |
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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
# CorsairLightingProtocol build property overrides | ||
# | ||
|
||
############################################################## | ||
|
||
build.vid=0x1b1c | ||
build.pid=0x0c0b | ||
build.usb_product="Lighting Node PRO" | ||
build.usb_manufacturer="Corsair" | ||
|
||
build.extra_flags={build.usb_flags} '-DSERIAL_NUMBER="FB66DF55421900F5"' -DDEBUG -DVERBOSE -DPRINT_COMMAND=true -DPRINT_RESPONSE=true -DPRINT_LOOP=true -DPRINT_UPDATE=true | ||
build.extra_flags={build.usb_flags} -DDEBUG -DVERBOSE -DPRINT_COMMAND=true -DPRINT_RESPONSE=true -DPRINT_LOOP=true -DPRINT_UPDATE=true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
# CorsairLightingProtocol build property overrides | ||
# | ||
|
||
############################################################## | ||
|
||
build.vid=0x1b1c | ||
build.pid=0x0c0b | ||
build.usb_product="Lighting Node PRO" | ||
build.usb_manufacturer="Corsair" | ||
|
||
#build.extra_flags={build.usb_flags} '-DSERIAL_NUMBER="FB66DF55421900F5"' |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.