diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9609754 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea +.pioenvs +.clang_complete +.gcc-flags.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3b3e966 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,63 @@ +# Continuous Integration (CI) is the practice, in software +# engineering, of merging all developer working copies with a shared mainline +# several times a day < http://docs.platformio.org/en/latest/ci/index.html > +# +# Documentation: +# +# * Travis CI Embedded Builds with PlatformIO +# < https://docs.travis-ci.com/user/integration/platformio/ > +# +# * PlatformIO integration with Travis CI +# < http://docs.platformio.org/en/latest/ci/travis.html > +# +# * User Guide for `platformio ci` command +# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html > +# +# +# Please choice one of the following templates (proposed below) and uncomment +# it (remove "# " before each line) or use own configuration according to the +# Travis CI documentation (see above). +# + + +# +# Template #1: General project. Test it using existing `platformio.ini`. +# + +# language: python +# python: +# - "2.7" +# +# sudo: false +# cache: +# directories: +# - "~/.platformio" +# +# install: +# - pip install -U platformio +# +# script: +# - platformio run + + +# +# Template #2: The project is intended to by used as a library with examples +# + +language: python +python: + - "2.7" + +sudo: false +cache: + directories: + - "~/.platformio" + +env: + - PLATFORMIO_CI_SRC=examples/TM1637Test/TM1637Test.ino + +install: + - pip install -U platformio + +script: + - platformio ci --lib="." --board=nodemcuv2 --board=ethernet diff --git a/README.md b/README.md index ad4b559..c3b77f2 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,3 @@ The library provides a single class named TM1637Display. An instance of this cla * `setBrightness` - Sets the brightness of the display The information given above is only a summary. Please refer to TM1637Display.h for more information. An example is included, demonstarting the operation of most of the functions. - diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..a83b87c --- /dev/null +++ b/platformio.ini @@ -0,0 +1,28 @@ +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload + +[env:nodemcuv2] +platform = espressif +framework = arduino +board = nodemcuv2 + +[env:ethernet] +platform = atmelavr +framework = arduino +board = ethernet