Skip to content

Commit

Permalink
Merge pull request #2 from Protocentral/add-intr-driven
Browse files Browse the repository at this point in the history
Added individual register control
  • Loading branch information
protocentralashwin authored Mar 22, 2023
2 parents 50700f3 + 27ca4c0 commit ba884ea
Show file tree
Hide file tree
Showing 8 changed files with 1,152 additions and 210 deletions.
Binary file modified .DS_Store
Binary file not shown.
81 changes: 33 additions & 48 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,58 @@
name: Compile Examples

# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
pull_request:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
push:
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:
UNIVERSAL_LIBRARIES: |
- source-path: ./
SKETCHES_REPORTS_PATH: sketches-reports

strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:avr:uno
- fqbn: arduino:avr:nano
platforms: |
- name: arduino:avr
- fqbn: arduino:samd:mkr1000
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrzero
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrwifi1010
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrfox1200
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrwan1300
- fqbn: arduino:avr:mega
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrwan1310
- name: arduino:avr
- fqbn: arduino:avr:leonardo
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrgsm1400
- name: arduino:avr
- fqbn: arduino:megaavr:nona4809
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrnb1500
- name: arduino:megaavr
- fqbn: arduino:sam:arduino_due_x_dbg
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:mkrvidor4000
- name: arduino:sam
- fqbn: arduino:samd:mkrzero
platforms: |
- name: arduino:samd
- fqbn: arduino:mbed_portenta:envie_m7
- fqbn: arduino:mbed_portenta:envie_m7:target_core=cm4
platforms: |
- name: arduino:mbed_portenta
- fqbn: arduino:mbed_portenta:envie_m4
- fqbn: arduino:mbed_portenta:envie_m7
platforms: |
- name: arduino:mbed_portenta
- fqbn: arduino:mbed_nano:nano33ble
Expand All @@ -69,37 +61,30 @@ jobs:
- fqbn: arduino:mbed_nano:nanorp2040connect
platforms: |
- name: arduino:mbed_nano
- fqbn: arduino:mbed_edge:edge_control
platforms: |
- name: arduino:mbed_edge
- fqbn: esp32:esp32:esp32
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- fqbn: rp2040:rp2040:rpipico
platforms: |
- name: rp2040:rp2040
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v3

- name: Install ESP32 platform dependencies
if: startsWith(matrix.board.fqbn, 'esp32:esp32')
run: pip3 install pyserial

- 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 memory usage change report as artifact
if: github.event_name == 'pull_request'
- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.SKETCHES_REPORTS_PATH }}
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ env.SKETCHES_REPORTS_PATH }}
5 changes: 5 additions & 0 deletions .vscode/arduino.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"port": "/dev/tty.usbmodem212301",
"board": "arduino:avr:uno",
"sketch": "examples/Example1-ECG-BioZ-stream-Openview/Example1-ECG-BioZ-stream-Openview.ino"
}
Loading

0 comments on commit ba884ea

Please sign in to comment.