From 19070d33ba6e9dbb0b18c8f70f803e46514415bb Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Tue, 7 Feb 2023 17:13:36 +0000 Subject: [PATCH] Add Arduino M0, and display time on serial monitor. --- platformio.ini | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 82167f2..40dc89e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -30,6 +30,7 @@ include_dir = . [env] build_flags = -Wall -Wextra +monitor_filters = time [env:samd21-dev-usb] platform = atmelsam @@ -51,6 +52,15 @@ monitor_speed = 115200 monitor_echo = yes build_flags = -std=c++17 +[env:Arduino M0] +platform = atmelsam +board = mzeroUSB +framework = arduino +lib_deps = ${env.lib_deps} +monitor_speed = 115200 +monitor_echo = yes +build_flags = -std=c++17 -DI2C_EXTENDED_ADDRESS ; -DI2C_USE_WIRE -DDIAG_LOOPTIMES -DDIAG_IO + [env:mega2560-debug] platform = atmelavr board = megaatmega2560 @@ -61,7 +71,7 @@ lib_deps = SPI monitor_speed = 115200 monitor_echo = yes -build_flags = -DDIAG_IO -DDIAG_LOOPTIMES +build_flags = -DI2C_EXTENDED_ADDRESS -DDIAG_IO -DDIAG_LOOPTIMES [env:mega2560-no-HAL] platform = atmelavr