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

add support for arduino R4 #181

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/build_firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/ayab/board.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a define guard for the new R4 platform.

Original file line number Diff line number Diff line change
Expand Up @@ -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_