Skip to content

Commit f281961

Browse files
committed
Move ErriezMCP23017 submodule to libraries directory
1 parent 582c7ee commit f281961

24 files changed

Lines changed: 4969 additions & 1 deletion

File tree

ErriezMCP23017

Submodule ErriezMCP23017 deleted from e0abdea
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#/bin/bash
2+
3+
# Exit immediately if a command exits with a non-zero status.
4+
set -e
5+
6+
echo "Starting auto-build script..."
7+
8+
9+
function autobuild()
10+
{
11+
# Set environment variables
12+
BOARDS_AVR="--board uno --board micro --board pro16MHzatmega328 --board pro8MHzatmega328 --board megaatmega2560 --board leonardo"
13+
BOARDS_ARM="--board due"
14+
BOARDS_ESP="--board d1_mini --board nodemcuv2 --board lolin_d32"
15+
16+
echo "Build examples/01_Polling..."
17+
platformio ci --lib="." ${BOARDS_AVR} ${BOARDS_ARM} ${BOARDS_ESP} examples/01_Polling/ErriezMCP23017_Blink/ErriezMCP23017_Blink.ino
18+
platformio ci --lib="." ${BOARDS_AVR} ${BOARDS_ARM} ${BOARDS_ESP} examples/01_Polling/ErriezMCP23017_BlinkAsynchronous/ErriezMCP23017_BlinkAsynchronous.ino
19+
platformio ci --lib="." ${BOARDS_AVR} ${BOARDS_ARM} ${BOARDS_ESP} examples/01_Polling/ErriezMCP23017_Button/ErriezMCP23017_Button.ino
20+
platformio ci --lib="." ${BOARDS_AVR} ${BOARDS_ARM} ${BOARDS_ESP} examples/01_Polling/ErriezMCP23017_Debounce/ErriezMCP23017_Debounce.ino
21+
platformio ci --lib="." ${BOARDS_AVR} ${BOARDS_ARM} ${BOARDS_ESP} examples/01_Polling/ErriezMCP23017_MultiplePins/ErriezMCP23017_MultiplePins.ino
22+
platformio ci --lib="." ${BOARDS_AVR} ${BOARDS_ARM} ${BOARDS_ESP} examples/01_Polling/ErriezMCP23017_PinPort/ErriezMCP23017_PinPort.ino
23+
24+
echo "Build examples/02_Interrupt_AVR..."
25+
platformio ci --lib="." ${BOARDS_AVR} examples/02_Interrupt_AVR/01_ErriezMCP23017_AVR_INT0/01_ErriezMCP23017_AVR_INT0.ino
26+
platformio ci --lib="." ${BOARDS_AVR} examples/02_Interrupt_AVR/02_ErriezMCP23017_AVR_PCINT/02_ErriezMCP23017_AVR_PCINT.ino
27+
28+
echo "Build examples/03_Interrupt_ESP8266_ESP32..."
29+
platformio ci --lib="." ${BOARDS_ESP} examples/03_Interrupt_ESP8266_ESP32/01_ErriezMCP23017_ESP8266_ESP32_Interrupt/01_ErriezMCP23017_ESP8266_ESP32_Interrupt.ino
30+
}
31+
32+
function generate_doxygen()
33+
{
34+
echo "Generate Doxygen HTML..."
35+
36+
DOXYGEN_PDF="ErriezMCP23017.pdf"
37+
38+
# Cleanup
39+
rm -rf html latex
40+
41+
# Generate Doxygen HTML and Latex
42+
doxygen Doxyfile
43+
44+
# Allow filenames starting with an underscore
45+
echo "" > html/.nojekyll
46+
47+
# Generate PDF when script is not running on Travis-CI
48+
if [[ -z ${TRAVIS_BUILD_DIR} ]]; then
49+
# Generate Doxygen PDF
50+
make -C latex
51+
52+
# Copy PDF to root directory
53+
cp latex/refman.pdf ./${DOXYGEN_PDF}
54+
fi
55+
}
56+
57+
autobuild
58+
generate_doxygen
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Exclude the following files to make this a C++ project
2+
*.sh linguist-vendored=true
3+
*.bat linguist-vendored=true
4+
5+
# Ignore the following files when creating a release
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/.travis.yml export-ignore
9+
/.*.sh export-ignore
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app
33+
34+
.idea/
35+
platformio/
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
################################################################################
2+
# Title : .travis.yml
3+
# Date created : 8 July 2020
4+
# Author : Erriez"
5+
#
6+
# This is a Continuous Integration script for Travis CI:
7+
# - Build Arduino examples with PlatformIO by using the library sources.
8+
# - Build Doxygen HTML and PDF and push this automatically to gh-pages. The
9+
# documentation is published at: https://<USER>.github.io/<REPOSITORY_NAME
10+
#
11+
#############################################################################
12+
13+
# Use Ubuntu 18.04 (Bionic Beaver)
14+
dist: bionic
15+
16+
# PlatformIO requires deprecated Python 2.7
17+
language: python
18+
python: 2.7
19+
20+
# Cache platformIO directory
21+
cache:
22+
directories:
23+
- "~/.platformio"
24+
25+
# Blacklist
26+
branches:
27+
except:
28+
- gh-pages
29+
30+
# Install dependencies
31+
addons:
32+
apt:
33+
packages:
34+
- doxygen
35+
- graphviz
36+
37+
# Install Python PlatformIO
38+
install:
39+
- pip install -U platformio
40+
- platformio update
41+
42+
# Build script
43+
script:
44+
- bash .auto-build.sh
45+
46+
# Push Doxygen html directory to Github gh-pages branch when building master
47+
deploy:
48+
provider: pages # Travis-CI - Github gh-pages
49+
skip_cleanup: true # Do not cleanup before push
50+
github_token: $GITHUB_TOKEN # Secure variable in Travis-CI project
51+
keep_history: true
52+
local_dir: html # Push Doxygen html directory
53+
on:
54+
branch: master # Only when pushing to master branch
55+

0 commit comments

Comments
 (0)