Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
97a3978
Merge pull request #378 from Candas1/timer_counter_off
Candas1 Feb 7, 2024
8382603
Same for f4,g4 and l4
Candas1 Feb 7, 2024
d7d4488
optimize
Candas1 Feb 9, 2024
81db3f5
added support for more than 2/3 adc pins
askuric Feb 11, 2024
41de6b6
Moving LinearHall back to drivers repository
dekutree64 Feb 14, 2024
3a84021
Moving LinearHall back to drivers repository
dekutree64 Feb 14, 2024
1ecfb22
NbrOfConversion = 1
Candas1 Feb 18, 2024
83e5247
Merge pull request #383 from Candas1/use_interrupt_if_no_repetition_c…
Candas1 Feb 21, 2024
0588d38
added teensy 4 6pwm tiemer sync and better support for low-side curre…
askuric Feb 26, 2024
94f4fb5
added support for center aligned 3pwm at least for one motor + low-si…
askuric Feb 29, 2024
238d26b
better error messages
askuric Feb 29, 2024
dec7abf
added code to set timer prescalers and overflow based on actual timer…
Copper280z Mar 11, 2024
f2b7b22
comment out HT->refresh() call
Copper280z Mar 11, 2024
f3492df
Merge pull request #385 from Candas1/analogread
runger1101001 Mar 13, 2024
49da7b0
add f7 current sense files
Copper280z Mar 17, 2024
92cb9af
Add missing implementation for MagneticSensorI2C::AS5600
ystradmann Mar 19, 2024
d48f4d7
added support for debugging with char
askuric Apr 19, 2024
c171a01
renamed the flag to force_center_aligend_3pwm
askuric Apr 19, 2024
82da857
small restructure of commented code
askuric Apr 19, 2024
d6a0b26
a small typo
askuric Apr 19, 2024
88f3346
Merge pull request #389 from ystradmann/fix_missing-impl-AS5600
askuric Apr 19, 2024
57ec89d
Merge pull request #388 from Copper280z/timer_prescaler
askuric Apr 19, 2024
f796c9d
added the sqrt(3) factor #372
askuric Apr 19, 2024
96b0804
another way of enabling downsample disable #377
askuric Apr 19, 2024
782e719
Merge pull request #392 from simplefoc/feat_teensy4_lowside
askuric Apr 19, 2024
c2c4365
enable disabling dowsanmpling #377
askuric Apr 19, 2024
977b141
added support for openloop in the initFOC #382
askuric Apr 19, 2024
1425dff
Merge pull request #326 from Candas1/flux_observer_sensor
askuric Apr 19, 2024
65e2208
readme prepare for v2.3.3
askuric Apr 19, 2024
af2c7c0
readme prepare for v2.3.3 v2
askuric Apr 19, 2024
d4e058d
Merge pull request #393 from simplefoc/dev
askuric Apr 19, 2024
9e3725c
Merge pull request #394 from Copper280z/f7_current_sense
askuric Apr 21, 2024
e6b3f4f
Update ccpp.yml
askuric Apr 21, 2024
1d92c3d
Update ccpp.yml
askuric Apr 21, 2024
be24ec7
Update ccpp.yml
askuric Apr 21, 2024
e8421ed
added teesny low-side example, and complted the readme with f7
askuric Apr 21, 2024
844aa72
Merge branch 'dev' of github.com:askuric/Arduino-FOC into dev
askuric Apr 21, 2024
7192791
typo in readme
askuric Apr 21, 2024
4fa7cf2
Update teensy.yml
askuric Apr 21, 2024
cc6dfa0
typo in the example
askuric Apr 21, 2024
4d33cd7
Update ccpp.yml
askuric Apr 21, 2024
3942e88
remove teensy sketch form uno
askuric Apr 21, 2024
e4b9f71
Merge remote-tracking branch 'origin/master' into dev
askuric Apr 21, 2024
f434a1e
Merge pull request #395 from simplefoc/dev
askuric Apr 21, 2024
c54623d
restructured the CI
askuric Apr 21, 2024
5c9e32a
added links to the new CI to readme
askuric Apr 21, 2024
26c631d
renamed the actions
askuric Apr 21, 2024
3c2c7cf
Merge pull request #396 from simplefoc/dev
askuric Apr 21, 2024
abda754
Update teensy4_mcu.cpp
askuric Apr 21, 2024
6fafa35
Update teensy4_mcu.cpp
askuric Apr 21, 2024
14f6726
fix RP2040 compile problems with earlehillpower
runger1101001 Apr 30, 2024
92f9fef
Merge pull request #397 from runger1101001/dev
runger1101001 Apr 30, 2024
627c0a8
Merge remote-tracking branch 'simplefoc/master' into dev
runger1101001 May 12, 2024
492d147
Merge pull request #399 from runger1101001/dev
runger1101001 May 13, 2024
3b7fa90
added initial support for current sensing for stepper motors
askuric May 20, 2024
c05289a
updated readme
askuric May 20, 2024
602c668
move setting target to start of move() #404
runger1101001 Jun 5, 2024
ac640e1
Merge pull request #405 from runger1101001/dev
runger1101001 Jun 5, 2024
f1b7452
add MT6701 I2C sensor configuration
May 11, 2024
83b606b
Merge pull request #406 from runger1101001/dev
runger1101001 Jun 5, 2024
1c732eb
Added gain documentation to B_G431B_ESC1.ino
rob-deutsch Jun 7, 2024
93bcfe0
use current sensing only if mpcpwm used and force LEDC for now
askuric Jun 7, 2024
8e8ffb2
adde the center-aligend ledc driver - enables 6pwm
askuric Jun 7, 2024
ae4df18
forgotten star
askuric Jun 7, 2024
26d111d
added the 6wpm driver
askuric Jun 8, 2024
ee91e27
removed the forced ledc
askuric Jun 8, 2024
0611830
Merge pull request #407 from rob-deutsch/patch-1
runger1101001 Jun 10, 2024
53624e4
added the inital support for new mcpwm driver
askuric Jun 10, 2024
e221e06
disable current sensing
askuric Jun 10, 2024
c28ad9d
fix for MagneticSensorI2C uses incorrect bit mask calculation #402402
runger1101001 Jun 10, 2024
a7ed4ba
an initial implementation of the lowside and inline current sense wit…
askuric Jun 15, 2024
ab64524
forgotten import
askuric Jun 16, 2024
aa8591e
Revert "an initial implementation of the lowside and inline current s…
askuric Jun 16, 2024
5d4187a
added the current sensing + phase state for driver
askuric Jun 16, 2024
4c25ef0
forgotten mcpwm ifdef
askuric Jun 16, 2024
67248d8
forgotten return statement change in stm32
askuric Jun 16, 2024
69eb707
forgotten bluepill
askuric Jun 16, 2024
bbd8017
added the support for phase state for 6pwm in haredware-6pwm mode + r…
askuric Jun 20, 2024
63fda20
added workflow or s2
askuric Jun 20, 2024
3c3e9c8
added the debugging in examples
askuric Jun 20, 2024
52e8d9d
added the support for esp32s3 to read all the current phases in one i…
askuric Jun 21, 2024
910c24f
forgotten change for bg431
askuric Jun 21, 2024
2200504
s3 bugfix - it cannot read faster than 10us per adc sample
askuric Jun 21, 2024
e92567e
bugfix for #295 and #320 + added #346
askuric Jun 21, 2024
0b367c3
refactured esp32 fast adc driver - simplified a lot
askuric Jun 21, 2024
d89fa26
added the error debugging
askuric Jun 21, 2024
710edb4
more refactoring of the current sensing
askuric Jun 21, 2024
bc2f848
typo in debug macro
askuric Jun 21, 2024
a1bd20e
say the pin name if the generator fails
askuric Jun 22, 2024
8ce92e0
restructured imports
askuric Jun 22, 2024
a734d0d
typo in the defines
askuric Jun 22, 2024
87ea185
Merge branch 'simplefoc:dev' into dev
runger1101001 Jun 22, 2024
538e59d
Merge pull request #414 from simplefoc/408-feature-support-for-arduin…
askuric Jun 23, 2024
9281dce
Merge branch 'dev' of https://github.com/simplefoc/Arduino-FOC into dev
runger1101001 Jun 23, 2024
e81af5d
Fix for #415 sin/cos integer overflow on 16-bit CPUs
dekutree64 Jun 29, 2024
bf75d20
Removed accidental addition of LinearHall.h
dekutree64 Jun 29, 2024
b203b83
Merge branch 'dev' into dev
dekutree64 Jun 29, 2024
53927d8
Merge branch 'dev' into feat_stepper_current_sensing
askuric Jun 30, 2024
463eb31
Update README.md
askuric Jul 11, 2024
d2a4093
one too many electrical angle
askuric Jul 13, 2024
eb4fd7f
update of pwm duty cycle on timer zero
askuric Jul 13, 2024
7d108c4
Merge branch 'dev' into feat_stepper_current_sensing
askuric Jul 13, 2024
842b361
new current sense alignement
askuric Jul 14, 2024
780bda9
exit flag currection for steppres
askuric Jul 15, 2024
ad0c4c5
feactoring and added ramping for current sense align
askuric Jul 15, 2024
9aee1aa
removed accidentally added files
askuric Jul 15, 2024
cf70cce
added the contering posibility
askuric Jul 15, 2024
dbc62a1
a correction for stepper
askuric Jul 15, 2024
c27bc4b
Merge pull request #416 from dekutree64/dev
runger1101001 Jul 18, 2024
31ed492
Merge pull request #424 from Candas1/hall_no_interrupt
runger1101001 Jul 19, 2024
996f312
Merge pull request #422 from simplefoc/feat_new_cs_align
askuric Jul 20, 2024
bd21d2b
Update CurrentSense.cpp
askuric Jul 20, 2024
d429148
refactored examples
askuric Jul 21, 2024
b2647a6
error in timer align (forgotten ifdef
askuric Jul 21, 2024
150a40b
error in exampels
askuric Jul 21, 2024
05672d2
motor init returns success
askuric Jul 21, 2024
ea8eda8
typo in transition from void to int
askuric Jul 21, 2024
5afea2b
preparations for v2.3.4
askuric Jul 21, 2024
37ca90d
readme for v2.3.4
askuric Jul 21, 2024
2de948c
Merge branch 'master' into dev
askuric Jul 21, 2024
c72f063
Merge pull request #425 from simplefoc/dev
askuric Jul 21, 2024
4395c22
Merge remote-tracking branch 'simplefoc/dev' into dev
runger1101001 Jul 21, 2024
1d1c5dd
HAL / LL only PWM driver
runger1101001 Aug 24, 2024
5569f73
update l4 current sense to new API
runger1101001 Aug 30, 2024
3d26880
change target to include all the mbed STM32H7s
runger1101001 Aug 30, 2024
afa8e3d
fix STM32F1 current sense
runger1101001 Aug 30, 2024
8102189
fix B-G431-ESC1 current sense driver
runger1101001 Aug 30, 2024
cd79e01
now working on Portenta H7
runger1101001 Aug 30, 2024
d688fcc
fix current sense for stm32f7 MCUs
runger1101001 Aug 30, 2024
e535bba
fix for software 6-PWM low side polarity
runger1101001 Aug 31, 2024
4d8fa4a
add comments for triggers
runger1101001 Oct 3, 2024
72aa902
working on rp2350 support
runger1101001 Oct 3, 2024
add1f42
Merge pull request #435 from runger1101001/rp2350_support
runger1101001 Oct 6, 2024
58ec978
Add motor characterisation
mcells Oct 9, 2024
65eff47
change uint to unsigned int for unit tests
mcells Oct 9, 2024
6ba2cf2
Add characterisation example
mcells Oct 10, 2024
6473a17
add ability to reserve timers so they don't get used for motors
runger1101001 Nov 7, 2024
f6362e7
small fixes
runger1101001 Nov 7, 2024
c507b71
fix for ESP32 C6 with >1 motors
runger1101001 Nov 7, 2024
de755f4
Merge pull request #436 from mcells/feat-inductance-measure
runger1101001 Nov 7, 2024
283e513
Merge remote-tracking branch 'simplefoc/dev' into dev
runger1101001 Nov 7, 2024
e3140fc
update readme with changes for 2.3.5 release
runger1101001 Nov 7, 2024
20e4481
bump library version for release
runger1101001 Nov 7, 2024
97abb54
Update esp32_ledc_mcu.cpp to ensure ledc_timer is initialised to a kn…
rob-deutsch Jan 17, 2025
1a267af
Update open_loop_velocity_6pwm.ino
askuric Feb 3, 2025
e11ab31
Update open_loop_position_example.ino
askuric Feb 3, 2025
83c341b
Update open_loop_velocity_6pwm.ino
askuric Feb 3, 2025
db09787
Merge branch 'stm32_hal_pwm' into dev
runger1101001 Feb 18, 2025
1f0be50
#451 change DriverType "Unknown" to "UnknownDriver"
runger1101001 Feb 18, 2025
b434d80
fix ESP32 example compilation
runger1101001 Feb 18, 2025
c5bfd51
fix compilation for ESP32S3 and DoIt DevKit
runger1101001 Feb 18, 2025
820ae07
remove dual I2C bus example from ESP32 C3 compile
runger1101001 Feb 18, 2025
8b288a9
exclude inductance/resistance example from UNO - too big
runger1101001 Feb 18, 2025
5981f8b
Merge pull request #442 from runger1101001/dev
runger1101001 Feb 18, 2025
f60c953
Merge pull request #449 from simplefoc/current_calculation_typo_in_co…
runger1101001 Feb 18, 2025
fb0be07
Merge pull request #447 from rob-deutsch/patch-1
runger1101001 Feb 21, 2025
1c25100
Merge pull request #452 from simplefoc/master
runger1101001 Feb 22, 2025
83c6276
change velocity calc to not update unless an angle change is observed.
Copper280z Feb 22, 2025
06d9eab
add feed forward terms for current and voltage
Copper280z Feb 22, 2025
77c38a4
angle GREATER than epsilon
Copper280z Feb 26, 2025
4ef3738
added the trgo info to the ADC
askuric Mar 12, 2025
d91a96f
show error if not using ADC pins
askuric Mar 12, 2025
9b1de23
moved the hybrid stepper to main + current sense support
askuric Mar 12, 2025
ccb3b48
allow stm32 to have any current sense pin as _NC
askuric Mar 12, 2025
dc1db48
typo in f1
askuric Mar 12, 2025
7c80c9a
Merge pull request #457 from simplefoc/feat_hybrid_stepper_to_main
runger1101001 Mar 12, 2025
8268acf
Fix `Pin is not configured as analog channel` error
jeremiahrose Mar 13, 2025
360121d
typo if a channel not used
askuric Mar 13, 2025
a2bd1ea
roll-back
askuric Mar 13, 2025
5dffc7b
f7 typo
askuric Mar 13, 2025
b824026
inital support for h7 low-side current sensing - compiless
askuric Mar 13, 2025
412c47a
use default dir only if sensor not connected
askuric Mar 14, 2025
1e1ace5
Merge pull request #458 from jeremiahrose/patch-1
runger1101001 Mar 14, 2025
d4a978b
Merge branch 'feat_h7_current_sensing' into feat_default_dir_only_no_…
askuric Mar 18, 2025
5f9c23b
inital testing for h7
askuric Mar 18, 2025
f182385
target_h7 to stm32h7
askuric Mar 18, 2025
b7c6638
add the compile for portenta and giga
askuric Mar 19, 2025
9e81c2c
issues with compile CI
askuric Mar 19, 2025
d6b83cb
remove giga from CI
askuric Mar 19, 2025
74face7
a rewrite for portenta + bugfixes
askuric Mar 19, 2025
36e078c
inital update of the cs for stm32
askuric Mar 21, 2025
3e1870b
rank calculation problem
askuric Mar 21, 2025
fa19507
Merge remote-tracking branch 'origin/dev' into dev
askuric Mar 21, 2025
3383d57
Merge branch 'dev' into 317-feature-foc_current-mode-and-current-feed…
askuric Mar 21, 2025
49e34e8
automatic adc selsction
askuric Mar 21, 2025
9bb6cfb
remove some debugging
askuric Mar 21, 2025
7cb5a17
Merge branch '317-feature-foc_current-mode-and-current-feed-forward' …
askuric Mar 21, 2025
2857d3e
h7 update for auto-search
askuric Mar 21, 2025
d8fac13
f1 update
askuric Mar 21, 2025
b9b9cf3
restructuring for f1
askuric Mar 21, 2025
162322f
giMerge branch '317-feature-foc_current-mode-and-current-feed-forward…
askuric Mar 21, 2025
302719c
tested h7 low-side, added repetition counterhandling
askuric Apr 29, 2025
5c5e309
add support for timer 8
May 7, 2025
cad1bc5
Merge pull request #468 from jeroenzwan/master
runger1101001 May 7, 2025
c8002cc
Merge pull request #459 from simplefoc/feat_default_dir_only_no_sensor
runger1101001 May 7, 2025
bf02fdd
Merge remote-tracking branch 'origin/dev' into feat_h7_current_sensing
askuric May 14, 2025
0bb487a
Merge pull request #460 from simplefoc/feat_h7_current_sensing
runger1101001 May 16, 2025
49cfd38
[BUG] esp32 ledc skips first channel index #471
runger1101001 May 21, 2025
311dfe7
bugfix for low-side sync
askuric May 28, 2025
8ab5336
refactored the injected channel config
askuric Jun 3, 2025
4680216
Add MT6701_I2C to MagneticSensorI2CConfig_s
adamgerhant Jun 17, 2025
30bff68
Disable allow power down when creating pwm timer
adamgerhant Jun 17, 2025
a03b493
Merge branch 'dev' into master
runger1101001 Jun 17, 2025
e235d70
Merge pull request #474 from adamgerhant/master
runger1101001 Jun 17, 2025
a40e148
Merge pull request #478 from simplefoc/fix_lowside_sync_lost
runger1101001 Jul 16, 2025
79903fe
newly written and simplified support for lowside on samd21
askuric Jul 24, 2025
23ed42c
some simplifications
askuric Jul 24, 2025
8ebbd19
indo update
askuric Jul 25, 2025
9dbd91a
Merge branch 'dev' of github.com:runger1101001/Arduino-FOC into dev
runger1101001 Jul 27, 2025
0205da7
Merge pull request #479 from simplefoc/feat_lowside_samd21
runger1101001 Jul 27, 2025
27091b1
Merge remote-tracking branch 'simplefoc/dev' into dev
runger1101001 Jul 27, 2025
a1d5b86
Merge pull request #480 from runger1101001/dev
runger1101001 Jul 27, 2025
a9ef741
Merge pull request #454 from Copper280z/ff_dev
runger1101001 Jul 28, 2025
e8f777e
Merge pull request #453 from Copper280z/velocity_rework
runger1101001 Jul 28, 2025
26215fb
stm32 define guards to avoid unecessary crashing
askuric Aug 1, 2025
3f6a73e
current sense alignement
askuric Aug 11, 2025
7748a9d
refactor esp32 cs dirver to remove magic numbers #296 #465
askuric Aug 21, 2025
3721f85
allow older esp32 version to compile with the v2.3.6 #462
askuric Aug 21, 2025
65e4c2f
remove the sketch align_current_sense for UNO
askuric Aug 21, 2025
da7cea0
resolve the compiler issues with the SPI encoder init structures #95
askuric Aug 21, 2025
1c584c3
refactor the driver sync for bg431
askuric Aug 21, 2025
fd066fa
prepare for v2.3.6
askuric Aug 21, 2025
0c86169
Merge pull request #482 from simplefoc/feat_bg341_sync_lost_fix
askuric Aug 23, 2025
bf74c7c
Add Silabs drivers and examples
silabs-szabog Sep 2, 2025
9d6503f
Fixing tests for EFR32 (Exclude from general arduino uno tests)
MarkWendler Sep 11, 2025
c5637b8
Added basic docs for Silabs examples
MarkWendler Sep 11, 2025
66aaec3
Updating Silab docs
MarkWendler Sep 11, 2025
ace0156
Fixes minor ambiguities in comments
silabs-SebestyenK Sep 12, 2025
57045ce
Fixing HW dependent inclusion
MarkWendler Sep 22, 2025
7cfd709
silabs test workflow added
MarkWendler Sep 23, 2025
1520b63
Merge pull request #485 from silabs-szabog/feat_support_efr32
runger1101001 Sep 24, 2025
b8f25df
Set ledc_channel.sleep_mode to LEDC_SLEEP_MODE_KEEP_ALIVE
bisak Sep 30, 2025
3abbbfc
Move the mcpwm on_full callback entry point to the IRAM.
uLipe Oct 10, 2025
6703dfe
ESP32: improve the execution speed of PWM drivers.
uLipe Oct 13, 2025
4e933aa
Merge pull request #492 from uLipe/feature/improve_mcpwm
runger1101001 Oct 14, 2025
7f45dca
Merge pull request #490 from uLipe/feature/esp32_adc_iram
runger1101001 Oct 14, 2025
a3991eb
ESP32: move runtime ADC reading functions to IRAM.
uLipe Oct 12, 2025
36df015
Merge pull request #491 from uLipe/feature/esp32_low_side_adc_iram
runger1101001 Oct 14, 2025
46f543f
Merge pull request #489 from bisak/bugfix/c3-ledc-sleep-mode
runger1101001 Oct 14, 2025
f5331e0
ESP32: replaced the mod base circular increment
uLipe Oct 15, 2025
9c616ba
ESP32: reorder the ADC buffer increment
uLipe Oct 16, 2025
c4e8470
Merge pull request #493 from uLipe/enhance/replace_mod
runger1101001 Oct 20, 2025
dde5cb1
g431-esc: use internal ADC channels, also fix some typos
Moddingear Sep 25, 2025
576ed19
fix unintialized adc1 channel 13 (op1) parameters
Moddingear Nov 2, 2025
a0d29b6
free vout pin on internal opamp channel usage - bg431-esc1
Moddingear Nov 2, 2025
785cf0a
better mechanism to enable internal channels - bg431-esc1
Moddingear Nov 2, 2025
8593db4
Fix invalid conversion from int to functionnal state
Moddingear Nov 2, 2025
5e04a52
Merge pull request #487 from Moddingear/dev
runger1101001 Nov 2, 2025
8c02a8a
fix minor magnetic_sensor_i2c warning
Moddingear Nov 4, 2025
0b7e25b
Merge pull request #496 from Moddingear/magnetic_sensor_i2c
runger1101001 Nov 5, 2025
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
61 changes: 61 additions & 0 deletions .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: AVR
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
project-type: library
build:
name: Test compiling
runs-on: ubuntu-latest

strategy:
matrix:
arduino-boards-fqbn:
- arduino:avr:uno # arudino uno
- arduino:sam:arduino_due_x # arduino due
- arduino:avr:mega # arduino mega2650
- arduino:avr:leonardo # arduino leonardo

include:
- arduino-boards-fqbn: arduino:avr:uno # arudino uno - compiling almost all examples
sketch-names: '**.ino'
required-libraries: PciManager
sketches-exclude: align_current_sense, measure_inductance_and_resistance,
teensy4_current_control_low_side, full_control_serial, angle_control,
bluepill_position_control, esp32_position_control, esp32_i2c_dual_bus_example,
stm32_i2c_dual_bus_example, magnetic_sensor_spi_alt_example, osc_esp32_3pwm,
osc_esp32_fullcontrol, nano33IoT_velocity_control, smartstepper_control,
esp32_current_control_low_side, stm32_spi_alt_example, esp32_spi_alt_example,
B_G431B_ESC1, odrive_example_spi, odrive_example_encoder, single_full_control_example,
double_full_control_example, stm32_current_control_low_side, open_loop_velocity_6pwm,
efr32_hall_sensor_velocity_6pwm, efr32_open_loop_velocity_6pwm, efr32_torque_velocity_6pwm

- arduino-boards-fqbn: arduino:sam:arduino_due_x # arduino due - one full example
sketch-names: single_full_control_example.ino

- arduino-boards-fqbn: arduino:avr:leonardo # arduino leonardo - one full example
sketch-names: open_loop_position_example.ino

- arduino-boards-fqbn: arduino:avr:mega # arduino mega2660 - one full example
sketch-names: single_full_control_example.ino


# Do not cancel all jobs / architectures if one job fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Compile all examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
required-libraries: ${{ matrix.required-libraries }}
platform-url: ${{ matrix.platform-url }}
sketch-names: ${{ matrix.sketch-names }}
sketches-exclude: ${{ matrix.sketches-exclude }}
build-properties: ${{ toJson(matrix.build-properties) }}
51 changes: 51 additions & 0 deletions .github/workflows/arduino_mbed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: MDED
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
project-type: library
build:
name: Test compiling
runs-on: ubuntu-latest

strategy:
matrix:
arduino-boards-fqbn:
#- arduino:mbed:giga # arudino giga
- arduino:mbed:nanorp2040connect # arduino nano rp2040 connect
- arduino:mbed:nano33ble # arduino nano 33 ble
- arduino:mbed:envie_m7 # arduino portenta

include:
- arduino-boards-fqbn: arduino:mbed:nanorp2040connect
sketch-names: open_loop_position_example.ino

- arduino-boards-fqbn: arduino:mbed:nano33ble
sketch-names: open_loop_position_example.ino

- arduino-boards-fqbn: arduino:mbed:envie_m7
sketch-names: open_loop_position_example.ino

# - arduino-boards-fqbn: arduino:mbed:giga
# sketch-names: single_full_control_example.ino


# Do not cancel all jobs / architectures if one job fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Compile all examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
required-libraries: ${{ matrix.required-libraries }}
platform-url: ${{ matrix.platform-url }}
sketch-names: ${{ matrix.sketch-names }}
sketches-exclude: ${{ matrix.sketches-exclude }}
build-properties: ${{ toJson(matrix.build-properties) }}
109 changes: 0 additions & 109 deletions .github/workflows/ccpp.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/esp32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: ESP32
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
project-type: library
build:
name: Test compiling
runs-on: ubuntu-latest

strategy:
matrix:
arduino-boards-fqbn:
- esp32:esp32:esp32doit-devkit-v1 # esp32
- esp32:esp32:esp32s2 # esp32s2
- esp32:esp32:esp32s3 # esp32s3
- esp32:esp32:esp32c3 # esp32c3

include:

- arduino-boards-fqbn: esp32:esp32:esp32s2 # esp32s2
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
sketch-names: bldc_driver_3pwm_standalone.ino,stepper_driver_2pwm_standalone.ino,stepper_driver_4pwm_standalone.ino

- arduino-boards-fqbn: esp32:esp32:esp32s3 # esp32s3
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
sketch-names: esp32_position_control.ino, esp32_i2c_dual_bus_example.ino

- arduino-boards-fqbn: esp32:esp32:esp32c3 # esp32c3
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
sketch-names: esp32_position_control.ino, stepper_driver_2pwm_standalone.ino, stepper_driver_4pwm_standalone.ino

- arduino-boards-fqbn: esp32:esp32:esp32doit-devkit-v1 # esp32
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
sketch-names: esp32_position_control.ino, esp32_i2c_dual_bus_example.ino, esp32_current_control_low_side.ino, esp32_spi_alt_example.ino

# Do not cancel all jobs / architectures if one job fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Compile all examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
required-libraries: ${{ matrix.required-libraries }}
platform-url: ${{ matrix.platform-url }}
sketch-names: ${{ matrix.sketch-names }}
sketches-exclude: ${{ matrix.sketches-exclude }}
build-properties: ${{ toJson(matrix.build-properties) }}
39 changes: 39 additions & 0 deletions .github/workflows/rpi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: RP2040
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
project-type: library
build:
name: Test compiling
runs-on: ubuntu-latest

strategy:
matrix:
arduino-boards-fqbn:
- arduino:mbed_rp2040:pico # rpi pico

include:

- arduino-boards-fqbn: arduino:mbed_rp2040:pico # raspberry pi pico - one example
sketch-names: open_loop_position_example.ino

# Do not cancel all jobs / architectures if one job fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Compile all examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
required-libraries: ${{ matrix.required-libraries }}
platform-url: ${{ matrix.platform-url }}
sketch-names: ${{ matrix.sketch-names }}
sketches-exclude: ${{ matrix.sketches-exclude }}
build-properties: ${{ toJson(matrix.build-properties) }}
44 changes: 44 additions & 0 deletions .github/workflows/samd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: SAMD
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
project-type: library
build:
name: Test compiling
runs-on: ubuntu-latest

strategy:
matrix:
arduino-boards-fqbn:
- arduino:samd:nano_33_iot # samd21
- adafruit:samd:adafruit_metro_m4 # samd51

include:

- arduino-boards-fqbn: arduino:samd:nano_33_iot # samd21
sketch-names: nano33IoT_velocity_control.ino, smartstepper_control.ino

- arduino-boards-fqbn: adafruit:samd:adafruit_metro_m4 # samd51 - one full example
platform-url: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
sketch-names: single_full_control_example.ino

# Do not cancel all jobs / architectures if one job fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Compile all examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
required-libraries: ${{ matrix.required-libraries }}
platform-url: ${{ matrix.platform-url }}
sketch-names: ${{ matrix.sketch-names }}
sketches-exclude: ${{ matrix.sketches-exclude }}
build-properties: ${{ toJson(matrix.build-properties) }}
Loading