From 65fe5f9da2f6ef92bcb1d44041104e3e194abbd5 Mon Sep 17 00:00:00 2001 From: Sylvain Mougenot Date: Sun, 3 Apr 2016 09:55:12 +0200 Subject: [PATCH 1/2] platformio build --- .gitignore | 4 ++++ .travis.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 1 - platformio.ini | 28 ++++++++++++++++++++++ 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 platformio.ini 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 From b4e6f258b592d5e8c73d56658169c9d549f3f08c Mon Sep 17 00:00:00 2001 From: Sylvain Mougenot Date: Sun, 3 Apr 2016 10:22:22 +0200 Subject: [PATCH 2/2] @PlatformIO Library Registry manifest file --- library.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 library.json diff --git a/library.json b/library.json new file mode 100644 index 0000000..12c0417 --- /dev/null +++ b/library.json @@ -0,0 +1,14 @@ +{ + "name": "TM1637", + "keywords": "LED, TM1637", + "description": "Arduino library for TM1637 (LED Driver)", + "repository": { + "type": "git", + "url": "https://github.com/avishorp/TM1637.git" + }, + "frameworks": "arduino", + "platforms": [ + "atmelavr", + "espressif" + ] +} \ No newline at end of file