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

Arduino libraries #2

Merged
merged 65 commits into from Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
0d5019a
esp8266 arduino core compatibility
d-a-v Apr 19, 2019
0dab7b9
remove unused warning
d-a-v Apr 19, 2019
5f64311
remove useless comment
per1234 Apr 23, 2019
b03683f
For Arduino MKR Vidor-4000
Jan 4, 2019
75a3c37
Merge pull request #96 from d-a-v/master
cmaglie Nov 19, 2019
235da47
PagerServer example - how server.available() and server.print() works
JAndrassy Sep 23, 2020
6b8b320
Configure Dependabot to check for outdated actions used in workflows
per1234 Apr 12, 2021
85a14d5
Add CI workflow to check for commonly misspelled words
per1234 Apr 12, 2021
4723604
Correct typos in comments and documentation
per1234 Apr 12, 2021
feda5e8
Add CI workflow to do Arduino project-specific linting
per1234 Apr 12, 2021
011837c
Add "smoke test" examples compilation CI workflow
per1234 Apr 12, 2021
753cd95
Report changes in memory usage that would result from merging a PR
per1234 Apr 12, 2021
481f960
Merge pull request #159 from arduino-libraries/ci
aentinger Apr 12, 2021
5509403
Fix compiler warning in htons
gudnimg Apr 20, 2021
7c32bbe
Merge pull request #161 from gudnimg/master
aentinger Jul 22, 2021
f820973
change links to https if possible (#66)
Rotzbua Oct 4, 2021
e435d22
Add docs
karlsoderby Oct 4, 2021
33b966f
Merge pull request #170 from arduino-libraries/karlsoderby/add-docs
karlsoderby Oct 4, 2021
e8e9026
Added pinout
karlsoderby Oct 4, 2021
5cdcdbc
Merge pull request #171 from arduino-libraries/karlsoderby/add-images
karlsoderby Oct 4, 2021
f0c0e37
Adding sync-labels workflow for sharing one set of labels across all …
aentinger Dec 15, 2021
473cfeb
Missing virtual destructor results in compiler warning (#153)
fredlcore Dec 15, 2021
32a9d84
Merge pull request #149 from jandrassy/PagerServer_example
aentinger Dec 15, 2021
7c46fb9
Merge pull request #100 from Wiznet/pullrequest-MKR_VIDOR-4000
aentinger Dec 15, 2021
1e2a6c2
rename sockindex to _sockindex
Rotzbua Jul 28, 2018
64b394f
Merge pull request #64 from Rotzbua/rename
aentinger Dec 15, 2021
6a5b8be
Fixing spelling error within examples/PagerServer. (#179)
aentinger Dec 15, 2021
d7b8b60
Fixing CI build for Arduino SAM Due. (#180)
aentinger Dec 15, 2021
e7d6c6d
same mac for all examples
Rotzbua Feb 14, 2017
a231db3
Merge pull request #46 from Rotzbua/improve-examples
aentinger Dec 15, 2021
993eea8
Use major version ref of `carlosperate/download-file-action` (#181)
per1234 Dec 20, 2021
56ab3e9
Standardize format of example sketch titles
per1234 Feb 22, 2022
6f0c593
Correct typos in documentation
per1234 Feb 22, 2022
483a06b
Merge pull request #183 from per1234/fix-typos
per1234 Feb 23, 2022
3e00b4f
Bump actions/checkout from 2 to 3
dependabot[bot] Mar 2, 2022
9e63d97
Merge pull request #184 from arduino-libraries/dependabot/github_acti…
per1234 Mar 2, 2022
e31c453
Update api.md
jacobhylen Apr 1, 2022
e5240c7
Update api.md
jacobhylen Apr 1, 2022
2998f47
Update api.md
jacobhylen Apr 1, 2022
6cb43af
Merge pull request #188 from jacobhylen/jacobhylen/change-links
karlsoderby Apr 1, 2022
be90b7d
Bump actions/upload-artifact from 2 to 3
dependabot[bot] Apr 8, 2022
058a40a
Bump actions/download-artifact from 2 to 3
dependabot[bot] Apr 8, 2022
f5c1c87
Merge pull request #190 from arduino-libraries/dependabot/github_acti…
per1234 Apr 11, 2022
809543b
Merge pull request #189 from arduino-libraries/dependabot/github_acti…
per1234 Apr 11, 2022
c14f3f8
Update api.md
Hannes7eicher Apr 29, 2022
4e356a6
Merge pull request #192 from Hannes7eicher/Hannes7eicher/Fixing-Bulle…
karlsoderby Apr 29, 2022
32b591c
Remove Paul Stoffregen from list of library maintainers
per1234 Jun 13, 2022
41cc163
Merge pull request #198 from per1234/update-maintainers
per1234 Jun 13, 2022
eaad5ab
Release v2.0.1.
aentinger Jul 6, 2022
b689d3e
Bump geekyeggo/delete-artifact from 1 to 2
dependabot[bot] Oct 12, 2022
c3c7188
Merge pull request #205 from arduino-libraries/dependabot/github_acti…
per1234 Oct 12, 2022
8ff455c
Bump carlosperate/download-file-action from 1 to 2
dependabot[bot] Oct 24, 2022
9e8a98c
Merge pull request #206 from arduino-libraries/dependabot/github_acti…
per1234 Oct 25, 2022
72462ca
Fixes static IPs for Arduino Nano Every
mghie Feb 28, 2023
a133ab5
Merge pull request #218 from mghie/nano-every-fix
facchinm Mar 21, 2023
d5672b7
Release 2.0.2
facchinm Mar 21, 2023
882e724
fixed no image on website issue
Taz03 Apr 13, 2023
d31148d
Merge pull request #221 from Taz03/patch-1
per1234 Apr 14, 2023
f5ab51a
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
39103da
Merge pull request #229 from arduino-libraries/dependabot/github_acti…
per1234 Sep 4, 2023
302c26f
Bump geekyeggo/delete-artifact from 2 to 4 (#245)
dependabot[bot] Mar 5, 2024
e1767f9
Bump actions/download-artifact from 3 to 4 (#244)
dependabot[bot] Mar 5, 2024
351463a
Bump actions/upload-artifact from 3 to 4 (#243)
dependabot[bot] Mar 5, 2024
ae040a1
Fix regression report-size-deltas after updating upload-artifact. (#253)
aentinger Mar 5, 2024
3ab73e1
Merge branch 'master' of https://github.com/arduino-libraries/Etherne…
stevstrong Mar 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .codespellrc
@@ -0,0 +1,7 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = nd,
check-filenames =
check-hidden =
skip = ./.git
10 changes: 10 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,10 @@
# See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#about-the-dependabotyml-file
version: 2

updates:
# Configure check for outdated GitHub Actions actions in workflows.
# See: https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
- package-ecosystem: github-actions
directory: / # Check the repository's workflows under /.github/workflows/
schedule:
interval: daily
28 changes: 28 additions & 0 deletions .github/workflows/check-arduino.yml
@@ -0,0 +1,28 @@
name: Check Arduino

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
pull_request:
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint.
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Arduino Lint
uses: arduino/arduino-lint-action@v1
with:
compliance: specification
library-manager: update
# Always use this setting for official repositories. Remove for 3rd party projects.
official: true
project-type: library
128 changes: 128 additions & 0 deletions .github/workflows/compile-examples.yml
@@ -0,0 +1,128 @@
name: Compile Examples

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

env:
SKETCHES_REPORTS_PATH: sketches-reports

strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:avr:nano
platforms: |
- name: arduino:avr
artifact-name-suffix: arduino-avr-nano
- fqbn: arduino:avr:mega
platforms: |
- name: arduino:avr
artifact-name-suffix: arduino-avr-mega
- fqbn: arduino:avr:leonardo
platforms: |
- name: arduino:avr
artifact-name-suffix: arduino-avr-leonardo
- fqbn: arduino:megaavr:uno2018
platforms: |
- name: arduino:megaavr
artifact-name-suffix: arduino-megaavr-uno2018
- fqbn: arduino:megaavr:nona4809
platforms: |
- name: arduino:megaavr
artifact-name-suffix: arduino-megaavr-nona4809
- fqbn: arduino:sam:arduino_due_x_dbg
platforms: |
- name: arduino:sam
artifact-name-suffix: arduino-sam-arduino_due_x_dbg
- fqbn: arduino:samd:arduino_zero_edbg
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-arduino_zero_edbg
- fqbn: arduino:samd:mkr1000
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkr1000
- fqbn: arduino:samd:mkrzero
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrzero
- fqbn: arduino:samd:mkrwifi1010
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrwifi100
- fqbn: arduino:samd:mkrfox1200
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkr1200
- fqbn: arduino:samd:mkrwan1300
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrwan1300
- fqbn: arduino:samd:mkrwan1310
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrwan1310
- fqbn: arduino:samd:mkrgsm1400
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrgsm1400
- fqbn: arduino:samd:mkrnb1500
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrnb1500
- fqbn: arduino:samd:mkrvidor4000
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrvidor4000
- fqbn: arduino:samd:nano_33_iot
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-nano_33_iot

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platforms }}
libraries: |
# Install the library from the local path.
- source-path: ./
# Additional library dependencies can be listed here.
# See: https://github.com/arduino/compile-sketches#libraries
sketch-paths: |
- examples
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
24 changes: 24 additions & 0 deletions .github/workflows/report-size-deltas.yml
@@ -0,0 +1,24 @@
name: Report Size Deltas

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/report-size-deltas.yml"
schedule:
# Run at the minimum interval allowed by GitHub Actions.
# Note: GitHub Actions periodically has outages which result in workflow failures.
# In this event, the workflows will start passing again once the service recovers.
- cron: "*/5 * * * *"
workflow_dispatch:
repository_dispatch:

jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Comment size deltas reports to PRs
uses: arduino/report-size-deltas@v1
with:
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
sketches-reports-source: ^sketches-report-.+
22 changes: 22 additions & 0 deletions .github/workflows/spell-check.yml
@@ -0,0 +1,22 @@
name: Spell Check

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
pull_request:
schedule:
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:

jobs:
spellcheck:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Spell check
uses: codespell-project/actions-codespell@master
138 changes: 138 additions & 0 deletions .github/workflows/sync-labels.yml
@@ -0,0 +1,138 @@
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/sync-labels.md
name: Sync Labels

# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/sync-labels.ya?ml"
- ".github/label-configuration-files/*.ya?ml"
pull_request:
paths:
- ".github/workflows/sync-labels.ya?ml"
- ".github/label-configuration-files/*.ya?ml"
schedule:
# Run daily at 8 AM UTC to sync with changes to shared label configurations.
- cron: "0 8 * * *"
workflow_dispatch:
repository_dispatch:

env:
CONFIGURATIONS_FOLDER: .github/label-configuration-files
CONFIGURATIONS_ARTIFACT: label-configuration-files

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download JSON schema for labels configuration file
id: download-schema
uses: carlosperate/download-file-action@v2
with:
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json
location: ${{ runner.temp }}/label-configuration-schema

- name: Install JSON schema validator
run: |
sudo npm install \
--global \
ajv-cli \
ajv-formats

- name: Validate local labels configuration
run: |
# See: https://github.com/ajv-validator/ajv-cli#readme
ajv validate \
--all-errors \
-c ajv-formats \
-s "${{ steps.download-schema.outputs.file-path }}" \
-d "${{ env.CONFIGURATIONS_FOLDER }}/*.{yml,yaml}"

download:
needs: check
runs-on: ubuntu-latest

strategy:
matrix:
filename:
# Filenames of the shared configurations to apply to the repository in addition to the local configuration.
# https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/sync-labels
- universal.yml

steps:
- name: Download
uses: carlosperate/download-file-action@v2
with:
file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }}

- name: Pass configuration files to next job via workflow artifact
uses: actions/upload-artifact@v4
with:
path: |
*.yaml
*.yml
if-no-files-found: error
name: ${{ env.CONFIGURATIONS_ARTIFACT }}

sync:
needs: download
runs-on: ubuntu-latest

steps:
- name: Set environment variables
run: |
# See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >> "$GITHUB_ENV"

- name: Determine whether to dry run
id: dry-run
if: >
github.event_name == 'pull_request' ||
(
(
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch'
) &&
github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
)
run: |
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
# configuration.
echo "::set-output name=flag::--dry-run"

- name: Checkout repository
uses: actions/checkout@v4

- name: Download configuration files artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.CONFIGURATIONS_ARTIFACT }}
path: ${{ env.CONFIGURATIONS_FOLDER }}

- name: Remove unneeded artifact
uses: geekyeggo/delete-artifact@v4
with:
name: ${{ env.CONFIGURATIONS_ARTIFACT }}

- name: Merge label configuration files
run: |
# Merge all configuration files
shopt -s extglob
cat "${{ env.CONFIGURATIONS_FOLDER }}"/*.@(yml|yaml) > "${{ env.MERGED_CONFIGURATION_PATH }}"

- name: Install github-label-sync
run: sudo npm install --global github-label-sync

- name: Sync labels
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# See: https://github.com/Financial-Times/github-label-sync
github-label-sync \
--labels "${{ env.MERGED_CONFIGURATION_PATH }}" \
${{ steps.dry-run.outputs.flag }} \
${{ github.repository }}
6 changes: 2 additions & 4 deletions AUTHORS
@@ -1,9 +1,8 @@

Alberto Panu https://github.com/bigjohnson
Alasdair Allan https://github.com/aallan
Alice Pintus https://github.com/00alis
Adrian McEwen https://github.com/amcewen
Arduino LLC http://arduino.cc/
Arduino LLC https://arduino.cc/
Arnie97 https://github.com/Arnie97
Arturo Guadalupi https://github.com/agdl
Bjoern Hartmann https://people.eecs.berkeley.edu/~bjoern/
Expand Down Expand Up @@ -33,6 +32,5 @@ Richard Sim
Scott Fitzgerald https://github.com/shfitz
Thibaut Viard https://github.com/aethaniel
Tom Igoe https://github.com/tigoe
WizNet http://www.wiznet.co.kr
WIZnet http://www.wiznet.co.kr
Zach Eveland https://github.com/zeveland