-
Notifications
You must be signed in to change notification settings - Fork 98
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 #1 from diyhue/master
update from diyHue/Light
- Loading branch information
Showing
69 changed files
with
2,048 additions
and
7,902 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,3 @@ | ||
board_manager: | ||
additional_urls: | ||
- http://arduino.esp8266.com/stable/package_esp8266com_index.json |
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,25 @@ | ||
# Contributing to diyHue Lights | ||
|
||
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1: | ||
|
||
The following is a set of guidelines for contributing to diyHue Lights. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. | ||
|
||
### Building with travis | ||
In order for your sketch to be built with travis, please upload only the `sketch.ino` file in a folder within the Arduino dir. Please make sure that the folder and sketch name are exactly the same, ignoring the extension. For example the sketch would be saved in `Lights/Arudino/Generic_Fun_Light/` and called `Generic_Fun_Light.ino`. | ||
|
||
Also within you PR, please create a commit to `.travis.yml`, adding a line in the matrix section. This should be in the format `- SKETCH="YOUR_SKETCH_NAME_HERE"`. Following the above example, `.travis.yml` would look like: | ||
|
||
``` | ||
... | ||
matrix: | ||
- SKETCH="Generic_RGBW_Light" | ||
- SKETCH="Generic_RGB_Light" | ||
- SKETCH="Generic_CCT_Light" | ||
- SKETCH="Generic_RGB_CCT_Light" | ||
- SKETCH="Generic_WS2812_Strip" | ||
- SKETCH="Generic_SK6812_Strip" | ||
- SKETCH="Generic_Fun_Strip" | ||
... | ||
``` | ||
|
||
Finaly, if your sketch requires any of the libraries not installed on [this](https://github.com/diyhue/Lights/blob/675d2693afdb5f38fd9e61fdcf21aa042a7817b4/install.sh#L94) line of `install.sh`, then please add a commit adding them. |
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 @@ | ||
*.elf |
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,59 @@ | ||
language: c | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- ~/arduino_cli | ||
- ~/.arduino15/packages/ | ||
|
||
git: | ||
depth: false | ||
quiet: true | ||
|
||
env: | ||
global: | ||
- ARDUINO_CLI_VERSION="0.3.4-alpha.preview" | ||
- COMMIT=${TRAVIS_COMMIT::8} | ||
matrix: | ||
- SKETCH="Generic_RGBW_Light" | ||
- SKETCH="Generic_RGB_Light" | ||
- SKETCH="Generic_CCT_Light" | ||
- SKETCH="Generic_RGB_CCT_Light" | ||
- SKETCH="Generic_WS2812_Strip" | ||
- SKETCH="Generic_SK6812_Strip" | ||
|
||
# No update for version 2.0 | ||
#- SKETCH="Generic_Dimmable_Light" | ||
#- SKETCH="Generic_ON_OFF_device" | ||
#- SKETCH="Generic_ON_OFF_device_433Mhz" | ||
#- SKETCH="EspLight-fridgefire" | ||
#- SKETCH="MY92XX_RGBW_Light" | ||
#- SKETCH="Sonoff_S20" | ||
#- SKETCH="WS2811_adjustable" | ||
#- SKETCH="WS2812BHueRing" | ||
#- SKETCH="sk6812_wwa" | ||
|
||
# Compile error | ||
#- SKETCH="fastLED_SM16726_RGBW_Bulb" | ||
#- SKETCH="P9813_ledstrip_chainable" | ||
|
||
install: | ||
- bash ${TRAVIS_BUILD_DIR}/install.sh | ||
- export PATH="$HOME/arduino_cli:$PATH" | ||
|
||
script: | ||
# Compile the sketch for NodeMCU board | ||
- arduino-cli compile --fqbn esp8266:esp8266:nodemcu ${TRAVIS_BUILD_DIR}/Arduino/$SKETCH/$SKETCH.ino --output ${TRAVIS_BUILD_DIR}/Arduino/bin/$SKETCH.bin | ||
|
||
# Push build files to repo | ||
after_success: | ||
- > | ||
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | ||
cd ${TRAVIS_BUILD_DIR} | ||
git checkout master | ||
git add * | ||
git commit --message "Build $SKETCH #${COMMIT} [skip travis]" | ||
git remote add origin-travis https://${GH_TOKEN}@github.com/diyhue/Lights.git | ||
git pull origin-travis master | ||
git push origin-travis master | ||
fi |
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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.