Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for platformio and travis-ci #8

Open
wants to merge 3 commits into
base: public
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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/page/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/page/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/page/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/main.cpp

install:
- pip install -U platformio

script:
- platformio ci --lib="." "examples/SimpleTouch" --board=esp01
- platformio ci --lib="." "examples/GPIOinverter" --board=esp01
- platformio ci --lib="." "examples/LEDfade" --board=esp01
- platformio ci --lib="." "examples/DataStream" --board=esp01

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "MPR121",
"version": "1.0.0",
"keywords": "MPR121, Touch, I2C",
"description": "Library for the MPR121 touch controller",
"repository": {
"type": "git",
"url": "https://github.com/BareConductive/mpr121"
},
"frameworks": "arduino",
"platforms": "espressif8266"
}
3 changes: 1 addition & 2 deletions MPR121/MPR121.cpp → src/MPR121.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ extern "C" {
#define OUT_OF_RANGE_BIT 4

MPR121_t::MPR121_t(){
Wire.begin();
address = 0x5C; // default address is 0x5C, for use with Bare Touch Board
ECR_backup = 0x00;
running = false;
Expand Down Expand Up @@ -676,4 +675,4 @@ void MPR121_t::setSamplePeriod(mpr121_sample_interval_t period){
setRegister(MPR121_AFE2, (scratch & 0xF8) | (period & 0x07));
}

MPR121_t MPR121 = MPR121_t();
MPR121_t MPR121 = MPR121_t();
File renamed without changes.
File renamed without changes.
File renamed without changes.