Skip to content

Commit af70b83

Browse files
authored
Version 2. runs on everything that reads CAN frames
This is a major release. EMUcan does not handle the CAN bus itself anymore, like this you can use whatever hardware you want! It runs with the MCP2515, Teensy, ESP32 and many more. But it also gives you something todo in case you upgrade from 1.* Please see the migration part on the main page and check out the new examples. Besides this EMUcan is now also autmated code tested, so it should give less bugs in the future :-)
1 parent 78586d9 commit af70b83

File tree

22 files changed

+818
-527
lines changed

22 files changed

+818
-527
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Compile Examples
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
compile-sketch-mcp2515:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Compile MCP2515 example
16+
uses: arduino/compile-sketches@v1
17+
with:
18+
libraries: |
19+
- name: autowp-mcp2515
20+
- source-path: ./
21+
sketch-paths: |
22+
- examples/EMUcan_MCP2515/EMUcan_MCP2515.ino
23+
- examples/EMUcan_MCP2515_send/EMUcan_MCP2515_send.ino
24+
25+
compile-sketch-esp32:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v3
31+
- name: Compile ESP32 example
32+
uses: arduino/compile-sketches@v1
33+
with:
34+
fqbn: esp32:esp32:esp32
35+
platforms: |
36+
- name: esp32:esp32
37+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
38+
libraries: |
39+
- source-path: ./
40+
sketch-paths: |
41+
- examples/EMUcan_ESP32/EMUcan_ESP32.ino
42+
43+
compile-sketch-teensy:
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@v3
49+
- name: Compile Teensy example
50+
uses: arduino/compile-sketches@main
51+
with:
52+
platforms: |
53+
- name: "teensy:avr"
54+
source-url: https://www.pjrc.com/teensy/td_156/package_teensy_index.json
55+
version: "1.57.0"
56+
fqbn: "teensy:avr:teensy40"
57+
libraries: |
58+
- source-path: ./
59+
sketch-paths: |
60+
- examples/EMUcan_Teensy/EMUcan_Teensy.ino

.github/workflows/lint-check.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint Check
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
lint-check:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
- name: Lint check
15+
uses: arduino/arduino-lint-action@v1
16+
with:
17+
library-manager: update
18+
compliance: strict

.github/workflows/main.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/unit-test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: run unit test program
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
run-program:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout this repo
13+
uses: actions/checkout@v3
14+
15+
- name: Build the test
16+
run: |
17+
g++ --version
18+
g++ -Wextra -Wall extras/*.cpp src/*.cpp -I./extras -I./src
19+
20+
- name: Run the test
21+
run: |
22+
./a.out

0 commit comments

Comments
 (0)