From 91bf2cea489cab5ace72ecfc05da678466745b18 Mon Sep 17 00:00:00 2001 From: matei jordache Date: Fri, 19 Jan 2024 15:36:15 -0500 Subject: [PATCH 1/2] add support for arduino R4 --- platformio.ini | 12 ++++++++++-- src/ayab/board.h | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 720ed8bd6..5eee9080b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,11 +9,19 @@ ; https://docs.platformio.org/page/projectconf.html [platformio] -default_envs = uno +default_envs = uno-avr [env] framework = arduino -[env:uno] +[env:uno-avr] platform = atmelavr board = uno + +[env:uno-r4-minima] +platform = renesas-ra +board = uno_r4_minima + +[env:uno-r4-wifi] +platform = renesas-ra +board = uno_r4_wifi \ No newline at end of file diff --git a/src/ayab/board.h b/src/ayab/board.h index 8a4d286e0..d29919b37 100644 --- a/src/ayab/board.h +++ b/src/ayab/board.h @@ -54,7 +54,7 @@ constexpr uint16_t START_KNITTING_DELAY = 2000U; #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) // Arduino Uno #else -#error "untested board" +#warning "untested board" #endif #endif // BOARD_H_ From 19e472b670084185665131365d6be34c95cc20e7 Mon Sep 17 00:00:00 2001 From: matei jordache Date: Fri, 19 Jan 2024 15:55:52 -0500 Subject: [PATCH 2/2] update workflow --- .github/workflows/build_firmware.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_firmware.yml b/.github/workflows/build_firmware.yml index c7ef3e37d..40a47f1ea 100644 --- a/.github/workflows/build_firmware.yml +++ b/.github/workflows/build_firmware.yml @@ -22,7 +22,7 @@ jobs: pip install --upgrade platformio - name: Build for Arduino UNO run: | - platformio run --environment uno + platformio run --environment uno-avr mkdir -p build mv .pio/build/uno/firmware.hex build/ayab_monolithic_uno.hex - name: Cache build asset