From 9b27a1ee3d277a0877d778742cba85a6e07af6e7 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis Date: Wed, 24 Jan 2024 18:02:16 +0100 Subject: [PATCH 01/27] update license header in examples and docs/readme --- docs/README.md | 17 +++++++++-------- examples/Analog_Out/Analog_Out.ino | 6 +++--- .../Analog_input_0_10V/Analog_input_0_10V.ino | 6 +++--- .../Analog_input_4_20mA/Analog_input_4_20mA.ino | 6 +++--- .../Analog_input_NTC/Analog_input_NTC.ino | 6 +++--- .../Fast_Analog_input_0_10V.ino | 4 +++- examples/CAN/ReadCan/ReadCan.ino | 6 +++--- examples/CAN/WriteCan/WriteCan.ino | 6 +++--- examples/Digital_output/Digital_output.ino | 6 +++--- .../Digital_input/Digital_input.ino | 6 +++--- .../GPIO_programmable/GPIO_programmable.ino | 6 +++--- examples/Encoders/Encoders.ino | 6 +++--- examples/Ethernet/Ethernet.ino | 4 +++- examples/RS232/RS232.ino | 6 +++--- examples/RS485_fullduplex/RS485_fullduplex.ino | 6 +++--- examples/RS485_halfduplex/RS485_halfduplex.ino | 6 +++--- examples/RTC/RTC.ino | 6 +++--- examples/RTC_Alarm/RTC_Alarm.ino | 6 +++--- examples/Temp_probes_RTD/Temp_probes_RTD.ino | 6 +++--- .../Temp_probes_Thermocouples.ino | 6 +++--- examples/USB_host/USB_host.ino | 6 +++--- 21 files changed, 69 insertions(+), 64 deletions(-) diff --git a/docs/README.md b/docs/README.md index 56c50af..c0752f1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,17 +1,17 @@ # Portenta Machine Control Library -[![Check Arduino status](https://github.com/arduino-libraries/Arduino_MachineControl/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_MachineControl/actions/workflows/check-arduino.yml) -[![Compile Examples status](https://github.com/arduino-libraries/Arduino_MachineControl/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_MachineControl/actions/workflows/compile-examples.yml) -[![Spell Check status](https://github.com/arduino-libraries/Arduino_MachineControl/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_MachineControl/actions/workflows/spell-check.yml) +[![Check Arduino status](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/actions/workflows/check-arduino.yml) +[![Compile Examples status](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/actions/workflows/compile-examples.yml) +[![Spell Check status](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/actions/workflows/spell-check.yml) -[![License](https://img.shields.io/badge/License-LGPLv2.1-blue.svg)](https://github.com/arduino-libraries/Arduino_MachineControl/blob/master/LICENSE.txt) +[![License](https://img.shields.io/badge/License-MPLv2.0-blue.svg)](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/blob/main/LICENSE) The Portenta Machine Control Library is a C++ library designed to efficiently manage the functionalities of the Portenta Machine Control board. It provides extensive support for inputs such as digital, analog, and encoder signals, while offering outputs including digital and analog signals. This library also menages communication through protocols like CAN-BUS and serial ports, and allows connectivity via Ethernet, USB, Wi-Fi, and Bluetooth Low Energy. The library empowers users to easily initialize, control, and access the diverse functionalities of the Portenta Machine Control, enhancing its capability and adaptability for industrial applications. 📚 For more information about this library please visit us at: -https://www.arduino.cc/reference/en/libraries/arduino_machinecontrol +https://www.arduino.cc/reference/en/libraries/arduino_portentamachinecontrol/ ## Features @@ -42,8 +42,8 @@ To use this library, you must have a properly powered Portenta Machine Control b Here is a minimal example to control a digital output: ```cpp -// Include the Arduino MachineControl library -#include +// Include the Arduino PortentaMachineControl library +#include void setup() { // Initialize the digital outputs module of the MachineControl library @@ -65,6 +65,7 @@ void loop() { - **[Analog_input_0_10V](../examples/Analog_input/Analog_input_0_10V):** This example demonstrates how to read analog input signals in the 0-10V range. - **[Analog_input_4_20mA](../examples/Analog_input/Analog_input_4_20mA):** This example demonstrates how to read analog input signals in the 4-20mA range. - **[Analog_input_NTC](../examples/Analog_input/Analog_input_NTC):** This example shows reading analog input signals from NTC temperature probes. +- **[Fast_Analog_input_0_10V](../examples/Analog_input/Fast_Analog_input_0_10V):** This example demonstrates how to read analog input signals in the 0-10V range using the [Arduino_AdvancedAnalog](https://github.com/arduino-libraries/Arduino_AdvancedAnalog) library. - **[Analog_Out](../examples/Analog_Out):** This example shows how to control analog output signals. - **[ReadCan](../examples/CAN/ReadCan):** This example demonstrates how to read data using the CAN-BUS communication protocol. - **[WriteCan](../examples/CAN/WriteCan):** This example demonstrates how to send data using the CAN-BUS communication protocol. @@ -88,4 +89,4 @@ The API documentation can be found [here](./api.md). ## License -This library is released under the [LGPLv2.1 license](https://github.com/arduino-libraries/Arduino_MachineControl/blob/master/LICENSE.txt). +This library is released under the [MPL-2.0 license](https://github.com/arduino-libraries/Arduino_PortentaMachineControl/blob/main/LICENSE). diff --git a/examples/Analog_Out/Analog_Out.ino b/examples/Analog_Out/Analog_Out.ino index d154fed..0a168b5 100644 --- a/examples/Analog_Out/Analog_Out.ino +++ b/examples/Analog_Out/Analog_Out.ino @@ -9,9 +9,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino b/examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino index c1c9bff..698a6e4 100644 --- a/examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino +++ b/examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino @@ -11,9 +11,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino b/examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino index ac6b795..7d67c6a 100644 --- a/examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino +++ b/examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino @@ -11,9 +11,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino b/examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino index 7a3ab25..010e401 100644 --- a/examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino +++ b/examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino @@ -13,9 +13,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Analog_input/Fast_Analog_input_0_10V/Fast_Analog_input_0_10V.ino b/examples/Analog_input/Fast_Analog_input_0_10V/Fast_Analog_input_0_10V.ino index 7d2e01c..a4d986e 100644 --- a/examples/Analog_input/Fast_Analog_input_0_10V/Fast_Analog_input_0_10V.ino +++ b/examples/Analog_input/Fast_Analog_input_0_10V/Fast_Analog_input_0_10V.ino @@ -11,7 +11,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/CAN/ReadCan/ReadCan.ino b/examples/CAN/ReadCan/ReadCan.ino index acecb49..75c6474 100644 --- a/examples/CAN/ReadCan/ReadCan.ino +++ b/examples/CAN/ReadCan/ReadCan.ino @@ -8,9 +8,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/CAN/WriteCan/WriteCan.ino b/examples/CAN/WriteCan/WriteCan.ino index 727cc10..4ea4c3d 100644 --- a/examples/CAN/WriteCan/WriteCan.ino +++ b/examples/CAN/WriteCan/WriteCan.ino @@ -8,9 +8,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Digital_output/Digital_output.ino b/examples/Digital_output/Digital_output.ino index 87c73e0..908bde2 100644 --- a/examples/Digital_output/Digital_output.ino +++ b/examples/Digital_output/Digital_output.ino @@ -15,9 +15,9 @@ * * NOTE: connect pin "24V IN" of the DIGITAL_OUTPUTS connector to 24V * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Digital_programmable/Digital_input/Digital_input.ino b/examples/Digital_programmable/Digital_input/Digital_input.ino index c2ed18b..0cbe06b 100644 --- a/examples/Digital_programmable/Digital_input/Digital_input.ino +++ b/examples/Digital_programmable/Digital_input/Digital_input.ino @@ -7,9 +7,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Digital_programmable/GPIO_programmable/GPIO_programmable.ino b/examples/Digital_programmable/GPIO_programmable/GPIO_programmable.ino index 2b9f982..94ac303 100644 --- a/examples/Digital_programmable/GPIO_programmable/GPIO_programmable.ino +++ b/examples/Digital_programmable/GPIO_programmable/GPIO_programmable.ino @@ -9,9 +9,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Encoders/Encoders.ino b/examples/Encoders/Encoders.ino index c241322..c7a640e 100644 --- a/examples/Encoders/Encoders.ino +++ b/examples/Encoders/Encoders.ino @@ -8,9 +8,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Ethernet/Ethernet.ino b/examples/Ethernet/Ethernet.ino index 3857491..e8adf61 100644 --- a/examples/Ethernet/Ethernet.ino +++ b/examples/Ethernet/Ethernet.ino @@ -9,7 +9,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/RS232/RS232.ino b/examples/RS232/RS232.ino index c66df65..1373afa 100644 --- a/examples/RS232/RS232.ino +++ b/examples/RS232/RS232.ino @@ -13,9 +13,9 @@ * - Connect PMC RXP to RS232 Device TXD * - Connect PMC GND to RS232 Device GND * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/RS485_fullduplex/RS485_fullduplex.ino b/examples/RS485_fullduplex/RS485_fullduplex.ino index d7e79a3..71a9dd4 100644 --- a/examples/RS485_fullduplex/RS485_fullduplex.ino +++ b/examples/RS485_fullduplex/RS485_fullduplex.ino @@ -12,9 +12,9 @@ * - Connect TXP to A(+) and TXN to B(-) * - Connect RXP to Y(+) and RXN to Z(-) * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include "Arduino_PortentaMachineControl.h" diff --git a/examples/RS485_halfduplex/RS485_halfduplex.ino b/examples/RS485_halfduplex/RS485_halfduplex.ino index 049096c..6bb6a36 100644 --- a/examples/RS485_halfduplex/RS485_halfduplex.ino +++ b/examples/RS485_halfduplex/RS485_halfduplex.ino @@ -11,9 +11,9 @@ * - A Slave device with RS485 interface * - Connect TXP to A(+) and TXN to B(-) * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include "Arduino_PortentaMachineControl.h" diff --git a/examples/RTC/RTC.ino b/examples/RTC/RTC.ino index cf87cfa..44df326 100644 --- a/examples/RTC/RTC.ino +++ b/examples/RTC/RTC.ino @@ -8,9 +8,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/RTC_Alarm/RTC_Alarm.ino b/examples/RTC_Alarm/RTC_Alarm.ino index 594fbb3..a2aa7d5 100644 --- a/examples/RTC_Alarm/RTC_Alarm.ino +++ b/examples/RTC_Alarm/RTC_Alarm.ino @@ -8,9 +8,9 @@ * - Portenta H7 * - Portenta Machine Control * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Temp_probes_RTD/Temp_probes_RTD.ino b/examples/Temp_probes_RTD/Temp_probes_RTD.ino index 2fe8826..b732bec 100644 --- a/examples/Temp_probes_RTD/Temp_probes_RTD.ino +++ b/examples/Temp_probes_RTD/Temp_probes_RTD.ino @@ -12,9 +12,9 @@ * - Portenta Machine Control * - 3-wire RTD or 2-wire RTD * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/Temp_probes_Thermocouples/Temp_probes_Thermocouples.ino b/examples/Temp_probes_Thermocouples/Temp_probes_Thermocouples.ino index 98d9ce2..db62fd7 100644 --- a/examples/Temp_probes_Thermocouples/Temp_probes_Thermocouples.ino +++ b/examples/Temp_probes_Thermocouples/Temp_probes_Thermocouples.ino @@ -11,9 +11,9 @@ * - Two K Type thermocouple temperature sensors connected to TEMP PROBES CH0 and CH1 * - A J Type thermocouple temperature sensor connected to TEMP PROBES CH3 * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include diff --git a/examples/USB_host/USB_host.ino b/examples/USB_host/USB_host.ino index ac47db7..2f07c04 100644 --- a/examples/USB_host/USB_host.ino +++ b/examples/USB_host/USB_host.ino @@ -8,9 +8,9 @@ * - Portenta Machine Control * - USB device (e.g., keyboard, mouse, etc.) * - * Initial author: Riccardo Rizzo @Rocketct - * Authors who have contributed to updates: - * - Leonardo Cavagnis @leonardocavagnis + * This example code is in the public domain. + * Copyright (c) 2024 Arduino + * SPDX-License-Identifier: MPL-2.0 */ #include From d77f85e9c9a501be95f5b42e9f0793b875295ee3 Mon Sep 17 00:00:00 2001 From: jcarolinares Date: Wed, 14 Feb 2024 17:17:20 +0100 Subject: [PATCH 02/27] RTD MAX31865Class private _ch_sel1 assignment fixed to channel 1 --- src/RTDTempProbeClass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RTDTempProbeClass.cpp b/src/RTDTempProbeClass.cpp index a64a910..382c21a 100644 --- a/src/RTDTempProbeClass.cpp +++ b/src/RTDTempProbeClass.cpp @@ -20,7 +20,7 @@ RTDTempProbeClass::RTDTempProbeClass(PinName rtd_cs_pin, PinName ch_sel1_pin, PinName ch_sel2_pin, PinName rtd_th_pin) -: MAX31865Class(rtd_cs_pin), _rtd_cs{rtd_cs_pin}, _ch_sel0{ch_sel0_pin}, _ch_sel1{ch_sel0_pin}, _ch_sel2{ch_sel2_pin}, _rtd_th{rtd_th_pin} +: MAX31865Class(rtd_cs_pin), _rtd_cs{rtd_cs_pin}, _ch_sel0{ch_sel0_pin}, _ch_sel1{ch_sel1_pin}, _ch_sel2{ch_sel2_pin}, _rtd_th{rtd_th_pin} { } RTDTempProbeClass::~RTDTempProbeClass() From 0ef5c428ce728be0e8bf1349802f5b7a2f710ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=A9ndez?= <49886387+mcmchris@users.noreply.github.com> Date: Fri, 23 Feb 2024 09:17:36 -0400 Subject: [PATCH 03/27] Thermocouple reading issue CH1 Update TCTempProbeClass.cpp The Class argument was wrong pointing to a wrong pin, it was fixed and tested. --- src/TCTempProbeClass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TCTempProbeClass.cpp b/src/TCTempProbeClass.cpp index 9bf5138..9e74a62 100644 --- a/src/TCTempProbeClass.cpp +++ b/src/TCTempProbeClass.cpp @@ -19,7 +19,7 @@ TCTempProbeClass::TCTempProbeClass(PinName tc_cs_pin, PinName ch_sel0_pin, PinName ch_sel1_pin, PinName ch_sel2_pin) -: MAX31855Class(tc_cs_pin), _tc_cs{tc_cs_pin}, _ch_sel0{ch_sel0_pin}, _ch_sel1{ch_sel0_pin}, _ch_sel2{ch_sel2_pin} +: MAX31855Class(tc_cs_pin), _tc_cs{tc_cs_pin}, _ch_sel0{ch_sel0_pin}, _ch_sel1{ch_sel1_pin}, _ch_sel2{ch_sel2_pin} { } TCTempProbeClass::~TCTempProbeClass() @@ -99,4 +99,4 @@ void TCTempProbeClass::_disable() { } TCTempProbeClass MachineControl_TCTempProbe; -/**** END OF FILE ****/ \ No newline at end of file +/**** END OF FILE ****/ From 8c847eeb68d49a55c15fef6ab98e9c06700c1743 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:04:22 +0100 Subject: [PATCH 04/27] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 567d7e9..2336228 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,14 @@ > [!IMPORTANT] > -> This library is an upgraded and improved version designed to replace the deprecated [Arduino_MachineControl](https://github.com/arduino-libraries/Arduino_MachineControl). -> +> This library is an upgraded and improved version designed to replace the deprecated [Arduino_MachineControl](https://github.com/arduino-libraries/Arduino_MachineControl). If you need assistance with migration, refer to the [migration guide](https://docs.arduino.cc/tutorials/portenta-machine-control/pmc-arduino-library). +> > Please note that all the [examples](./examples/) provided in this repository are not compatible with the deprecated library. The Portenta Machine Control library enables efficient management of the features of the Portenta Machine Control board. The Arduino Portenta Machine Control is a versatile industrial unit for driving machinery. It offers soft-PLC control, diverse I/O options, and flexible network connectivity. -📦 For more information about this product: -https://www.arduino.cc/pro/hardware/product/portenta-machine-control +📦 For more information about this product, please visit the [product page](https://www.arduino.cc/pro/hardware/product/portenta-machine-control) and refer to the [user manual](https://docs.arduino.cc/tutorials/portenta-machine-control/user-manual/). 📖 For more information about this library please read the documentation [here](./docs/). From 563b200eaa543dc40b58fcdb2a4f760877f40f1d Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:28:59 +0100 Subject: [PATCH 05/27] Update library.properties 1.0.1 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 928a25b..22da0eb 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_PortentaMachineControl -version=1.0.0 +version=1.0.1 author=Arduino maintainer=Arduino sentence=Arduino Library for Portenta Machine Control (PMC) From 4e43a366acbdc08e445332646cc173327ae89a17 Mon Sep 17 00:00:00 2001 From: Kevin Mock <38329905+kevmk04@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:19:08 -0600 Subject: [PATCH 06/27] Fix DigitalOutputs writeAll function logical operator --- src/DigitalOutputsClass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DigitalOutputsClass.cpp b/src/DigitalOutputsClass.cpp index 97eb7a4..cf492f4 100644 --- a/src/DigitalOutputsClass.cpp +++ b/src/DigitalOutputsClass.cpp @@ -77,7 +77,7 @@ void DigitalOutputsClass::write(uint8_t channel, PinStatus val) { void DigitalOutputsClass::writeAll(uint8_t val_mask) { for (uint8_t ch = 0; ch < 8; ch++) { - if (val_mask && (1 << ch)) { + if (val_mask & (1 << ch)) { write(ch, HIGH); } else { write(ch, LOW); @@ -94,4 +94,4 @@ void DigitalOutputsClass::_setAutoRetryMode() { } DigitalOutputsClass MachineControl_DigitalOutputs; -/**** END OF FILE ****/ \ No newline at end of file +/**** END OF FILE ****/ From ef91f67a209c84b228457a883c39dcd8be4c925d Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis Date: Fri, 17 May 2024 09:20:45 +0200 Subject: [PATCH 07/27] remove former license headers --- src/utility/MAX31865/MAX31865.cpp | 19 ------------------- src/utility/MAX31865/MAX31865.h | 19 ------------------- src/utility/RTC/PCF8563T.cpp | 19 ------------------- src/utility/RTC/PCF8563T.h | 19 ------------------- src/utility/THERMOCOUPLE/MAX31855.cpp | 19 ------------------- src/utility/THERMOCOUPLE/MAX31855.h | 19 ------------------- src/utility/ioexpander/ArduinoIOExpander.cpp | 16 ---------------- src/utility/ioexpander/ArduinoIOExpander.h | 16 ---------------- 8 files changed, 146 deletions(-) diff --git a/src/utility/MAX31865/MAX31865.cpp b/src/utility/MAX31865/MAX31865.cpp index 985812e..cdcd1e4 100644 --- a/src/utility/MAX31865/MAX31865.cpp +++ b/src/utility/MAX31865/MAX31865.cpp @@ -1,22 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (c) 2021 Arduino SA. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #include "MAX31865.h" diff --git a/src/utility/MAX31865/MAX31865.h b/src/utility/MAX31865/MAX31865.h index f95969b..eb689af 100644 --- a/src/utility/MAX31865/MAX31865.h +++ b/src/utility/MAX31865/MAX31865.h @@ -1,22 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (c) 2021 Arduino SA. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #ifndef MAX31865_H #define MAX31865_H diff --git a/src/utility/RTC/PCF8563T.cpp b/src/utility/RTC/PCF8563T.cpp index 57d5a21..307eb96 100644 --- a/src/utility/RTC/PCF8563T.cpp +++ b/src/utility/RTC/PCF8563T.cpp @@ -1,22 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (c) 2020 Arduino SA. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #include "PCF8563T.h" #define PCF8563T_ADDRESS 0x51 diff --git a/src/utility/RTC/PCF8563T.h b/src/utility/RTC/PCF8563T.h index 12786cb..5ac6be5 100644 --- a/src/utility/RTC/PCF8563T.h +++ b/src/utility/RTC/PCF8563T.h @@ -1,22 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (c) 2020 Arduino SA. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #ifndef _PCF8563T_H_INCLUDED #define _PCF8563T_H_INCLUDED diff --git a/src/utility/THERMOCOUPLE/MAX31855.cpp b/src/utility/THERMOCOUPLE/MAX31855.cpp index 80f580e..eb2e64a 100644 --- a/src/utility/THERMOCOUPLE/MAX31855.cpp +++ b/src/utility/THERMOCOUPLE/MAX31855.cpp @@ -1,22 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (c) 2020 Arduino SA. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #include "MAX31855.h" const double MAX31855Class::Jm210_760[] ; diff --git a/src/utility/THERMOCOUPLE/MAX31855.h b/src/utility/THERMOCOUPLE/MAX31855.h index 4334c3c..f2924b7 100644 --- a/src/utility/THERMOCOUPLE/MAX31855.h +++ b/src/utility/THERMOCOUPLE/MAX31855.h @@ -1,22 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (c) 2020 Arduino SA. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #ifndef _MAX31855_H_ #define _MAX31855_H_ diff --git a/src/utility/ioexpander/ArduinoIOExpander.cpp b/src/utility/ioexpander/ArduinoIOExpander.cpp index 461e72e..b2c1738 100644 --- a/src/utility/ioexpander/ArduinoIOExpander.cpp +++ b/src/utility/ioexpander/ArduinoIOExpander.cpp @@ -1,19 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (C) 2020 Arduino AG (http://www.arduino.cc/) - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #include "ArduinoIOExpander.h" bool ArduinoIOExpanderClass::begin() diff --git a/src/utility/ioexpander/ArduinoIOExpander.h b/src/utility/ioexpander/ArduinoIOExpander.h index e7cd402..66e4de1 100644 --- a/src/utility/ioexpander/ArduinoIOExpander.h +++ b/src/utility/ioexpander/ArduinoIOExpander.h @@ -1,19 +1,3 @@ -/* - This file is part of the MachineControl library. - Copyright (C) 2020 Arduino AG (http://www.arduino.cc/) - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - #pragma once #include From e916c9c3eee5af49593a9c913d29155c7b8567b9 Mon Sep 17 00:00:00 2001 From: kolaha99 <42593376+kolaha99@users.noreply.github.com> Date: Tue, 18 Jun 2024 05:09:13 +0200 Subject: [PATCH 08/27] Update MAX31855.cpp oops, 0x800 was wrong too --- src/utility/THERMOCOUPLE/MAX31855.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/THERMOCOUPLE/MAX31855.cpp b/src/utility/THERMOCOUPLE/MAX31855.cpp index eb2e64a..c0eba19 100644 --- a/src/utility/THERMOCOUPLE/MAX31855.cpp +++ b/src/utility/THERMOCOUPLE/MAX31855.cpp @@ -208,7 +208,7 @@ float MAX31855Class::readReferenceTemperature(int type) // The cold junction reference temperature is stored in the first 11 word's bits // sent by the Thermocouple-to-Digital Converter - rawword = rawword & 0x7FF; + rawword = rawword & 0xFFF; // check sign bit and convert to negative value. if (rawword & 0x800) { ref = (0xF800 | (rawword & 0x7FF))*0.0625; From fe1f72950b6ce7eaf7d8eba3ccd6bf3728af0863 Mon Sep 17 00:00:00 2001 From: kolaha99 <42593376+kolaha99@users.noreply.github.com> Date: Wed, 19 Jun 2024 20:30:19 +0200 Subject: [PATCH 09/27] Update MAX31855.cpp no Serial.print --- src/utility/THERMOCOUPLE/MAX31855.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/THERMOCOUPLE/MAX31855.cpp b/src/utility/THERMOCOUPLE/MAX31855.cpp index c0eba19..03f5b23 100644 --- a/src/utility/THERMOCOUPLE/MAX31855.cpp +++ b/src/utility/THERMOCOUPLE/MAX31855.cpp @@ -216,7 +216,7 @@ float MAX31855Class::readReferenceTemperature(int type) // multiply for the LSB value ref = rawword * 0.0625f; } - Serial.println(ref); + return ref; } From 61fb03b36b130e5af22de852c32bf454f9587448 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:19:21 +0200 Subject: [PATCH 10/27] Update library.properties 1.0.2 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 22da0eb..5aacf4d 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_PortentaMachineControl -version=1.0.1 +version=1.0.2 author=Arduino maintainer=Arduino sentence=Arduino Library for Portenta Machine Control (PMC) From 0d214000a1c39fdae45f462efec225928e88fc20 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:39:54 +0100 Subject: [PATCH 11/27] Bump geekyeggo/delete-artifact from 2 to 5 (#9) Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 2 to 5. - [Release notes](https://github.com/geekyeggo/delete-artifact/releases) - [Changelog](https://github.com/GeekyEggo/delete-artifact/blob/main/CHANGELOG.md) - [Commits](https://github.com/geekyeggo/delete-artifact/compare/v2...v5) --- updated-dependencies: - dependency-name: geekyeggo/delete-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 9cde1ac..8a59ebe 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -114,7 +114,7 @@ jobs: path: ${{ env.CONFIGURATIONS_FOLDER }} - name: Remove unneeded artifact - uses: geekyeggo/delete-artifact@v2 + uses: geekyeggo/delete-artifact@v5 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} From a8e93a5702fa739848e7549f7db4c3589ac6ed64 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:40:13 +0100 Subject: [PATCH 12/27] Bump actions/download-artifact from 3 to 4 (#2) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 8a59ebe..5dcb388 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v4 - name: Download configuration files artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} path: ${{ env.CONFIGURATIONS_FOLDER }} From 1c40982696e5ed249de04e6ea7fca7fc5792d470 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:40:31 +0100 Subject: [PATCH 13/27] Bump actions/upload-artifact from 3 to 4 (#1) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/compile-examples.yml | 2 +- .github/workflows/sync-labels.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 39fd50f..b03232d 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -54,7 +54,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Save memory usage change report as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: if-no-files-found: error path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 5dcb388..53a9f54 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -70,7 +70,7 @@ jobs: file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }} - name: Pass configuration files to next job via workflow artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: | *.yaml From 2ad4598f9873b3f3ac850e6bb15cdd4e5a2a78e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 31 Oct 2024 05:51:27 +0100 Subject: [PATCH 14/27] Bump arduino/arduino-lint-action from 1 to 2 (#23) Bumps [arduino/arduino-lint-action](https://github.com/arduino/arduino-lint-action) from 1 to 2. - [Release notes](https://github.com/arduino/arduino-lint-action/releases) - [Commits](https://github.com/arduino/arduino-lint-action/compare/v1...v2) --- updated-dependencies: - dependency-name: arduino/arduino-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check-arduino.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-arduino.yml b/.github/workflows/check-arduino.yml index adb330f..e818685 100644 --- a/.github/workflows/check-arduino.yml +++ b/.github/workflows/check-arduino.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Arduino Lint - uses: arduino/arduino-lint-action@v1 + uses: arduino/arduino-lint-action@v2 with: compliance: specification library-manager: update From e45292b4f63905c8f411cf37f6eed405e03bba3b Mon Sep 17 00:00:00 2001 From: Giampaolo Mancini Date: Thu, 12 Dec 2024 12:33:23 +0100 Subject: [PATCH 15/27] Read time from RTC Read the time value from the RTC. This ensures that the RTC holds the correct values for 48H after removing the power. --- examples/RTC/RTC.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/RTC/RTC.ino b/examples/RTC/RTC.ino index 44df326..ba94ef4 100644 --- a/examples/RTC/RTC.ino +++ b/examples/RTC/RTC.ino @@ -62,7 +62,7 @@ void loop() { Serial.print(":"); Serial.println(MachineControl_RTCController.getSeconds()); - time_t utc_time = time(NULL); + time_t utc_time = MachineControl_RTCController.getEpoch(); Serial.print("Date as UTC time: "); Serial.println(utc_time); Serial.println(); From 3294959a78c34170f287e0043a64628b490b1795 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis Date: Tue, 25 Mar 2025 13:10:58 +0100 Subject: [PATCH 16/27] fix: pin init in TCTempProbeClass --- src/TCTempProbeClass.cpp | 8 ++++++-- src/TCTempProbeClass.h | 4 +++- src/pins_mc.h | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/TCTempProbeClass.cpp b/src/TCTempProbeClass.cpp index 9e74a62..7d40699 100644 --- a/src/TCTempProbeClass.cpp +++ b/src/TCTempProbeClass.cpp @@ -18,8 +18,9 @@ uint8_t* boardInfo(); TCTempProbeClass::TCTempProbeClass(PinName tc_cs_pin, PinName ch_sel0_pin, PinName ch_sel1_pin, - PinName ch_sel2_pin) -: MAX31855Class(tc_cs_pin), _tc_cs{tc_cs_pin}, _ch_sel0{ch_sel0_pin}, _ch_sel1{ch_sel1_pin}, _ch_sel2{ch_sel2_pin} + PinName ch_sel2_pin, + PinName tc_th_pin) +: MAX31855Class(tc_cs_pin), _tc_cs{tc_cs_pin}, _ch_sel0{ch_sel0_pin}, _ch_sel1{ch_sel1_pin}, _ch_sel2{ch_sel2_pin}, _tc_th{tc_th_pin} { } TCTempProbeClass::~TCTempProbeClass() @@ -31,6 +32,7 @@ bool TCTempProbeClass::begin() { pinMode(_ch_sel0, OUTPUT); pinMode(_ch_sel1, OUTPUT); pinMode(_ch_sel2, OUTPUT); + pinMode(_tc_th, OUTPUT); pinMode(_tc_cs, OUTPUT); @@ -92,10 +94,12 @@ void TCTempProbeClass::end() { void TCTempProbeClass::_enable() { digitalWrite(_tc_cs, LOW); + digitalWrite(_tc_th, LOW); } void TCTempProbeClass::_disable() { digitalWrite(_tc_cs, HIGH); + digitalWrite(_tc_th, HIGH); } TCTempProbeClass MachineControl_TCTempProbe; diff --git a/src/TCTempProbeClass.h b/src/TCTempProbeClass.h index 7001042..f0e74a0 100644 --- a/src/TCTempProbeClass.h +++ b/src/TCTempProbeClass.h @@ -41,7 +41,8 @@ class TCTempProbeClass: public MAX31855Class { TCTempProbeClass(PinName tc_cs_pin = MC_TC_CS_PIN, PinName ch_sel0_pin = MC_TC_SEL0_PIN, PinName ch_sel1_pin = MC_TC_SEL1_PIN, - PinName ch_sel2_pin = MC_TC_SEL2_PIN); + PinName ch_sel2_pin = MC_TC_SEL2_PIN, + PinName tc_th_pin = MC_TC_TH_PIN); /** * @brief Destruct the TCTempProbeClass object. @@ -74,6 +75,7 @@ class TCTempProbeClass: public MAX31855Class { PinName _ch_sel0; // Pin for the first channel selection bit PinName _ch_sel1; // Pin for the second channel selection bit PinName _ch_sel2; // Pin for the third channel selection bit + PinName _tc_th; // Pin for the TC/RTD connection /** * @brief Enable the chip select (CS) of the MAX31855 digital converter. diff --git a/src/pins_mc.h b/src/pins_mc.h index d89a75c..089466c 100644 --- a/src/pins_mc.h +++ b/src/pins_mc.h @@ -84,6 +84,7 @@ #define MC_TC_SEL0_PIN MC_RTD_SEL0_PIN #define MC_TC_SEL1_PIN MC_RTD_SEL1_PIN #define MC_TC_SEL2_PIN MC_RTD_SEL2_PIN +#define MC_TC_TH_PIN MC_RTD_TH_PIN /* USB */ #define MC_USB_PWR_PIN PB_14 From 721161ccbe54ac8513c5cf5e29549263707ded8c Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Thu, 27 Mar 2025 14:34:12 +0100 Subject: [PATCH 17/27] Update library.properties 1.0.3 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 5aacf4d..b523049 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_PortentaMachineControl -version=1.0.2 +version=1.0.3 author=Arduino maintainer=Arduino sentence=Arduino Library for Portenta Machine Control (PMC) From 0062b279bd09a0b7fac68b70bf95b6d79bae0cfd Mon Sep 17 00:00:00 2001 From: jiander-snap Date: Tue, 22 Jul 2025 06:56:45 -0600 Subject: [PATCH 18/27] Add method to change encoder encoding type. (#29) * Add method to change encoder encoding type. * Restore encoding default. --- src/EncoderClass.cpp | 9 +++++++++ src/EncoderClass.h | 10 ++++++++++ src/utility/QEI/QEI.cpp | 32 +++++++++++++++++++------------- src/utility/QEI/QEI.h | 7 +++++++ 4 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/EncoderClass.cpp b/src/EncoderClass.cpp index 3fe546f..7308f07 100644 --- a/src/EncoderClass.cpp +++ b/src/EncoderClass.cpp @@ -63,5 +63,14 @@ int EncoderClass::getRevolutions(int channel) { } } +void EncoderClass::setEncoding(int channel, QEI::Encoding encoding) { + switch (channel) { + case 0: + return _enc0.setEncoding(encoding); + case 1: + return _enc1.setEncoding(encoding); + } +} + EncoderClass MachineControl_Encoders; /**** END OF FILE ****/ \ No newline at end of file diff --git a/src/EncoderClass.h b/src/EncoderClass.h index ecb18d1..3f76085 100644 --- a/src/EncoderClass.h +++ b/src/EncoderClass.h @@ -94,6 +94,16 @@ class EncoderClass { */ int getRevolutions(int channel); + /** + * @brief Set the encoding type for the specified encoder channel. + * + * This method changes the encoding type from the default X2_ENCODING. + * + * @param channel The encoder channel (0 or 1) to be changed. + * @param encoding The encoding type. + */ + void setEncoding(int channel, QEI::Encoding encoding); + private: QEI _enc0; // QEI object for encoder 0 QEI _enc1; // QEI object for encoder 1 diff --git a/src/utility/QEI/QEI.cpp b/src/utility/QEI/QEI.cpp index db767db..7ef3f57 100644 --- a/src/utility/QEI/QEI.cpp +++ b/src/utility/QEI/QEI.cpp @@ -148,19 +148,7 @@ QEI::QEI(PinName channelA, currState_ = (chanA << 1) | (chanB); prevState_ = currState_; - //X2 encoding uses interrupts on only channel A. - //X4 encoding uses interrupts on channel A, - //and on channel B. - channelA_.rise(mbed::callback(this, &QEI::encode)); - if(encoding != X1_ENCODING){ - channelA_.fall(mbed::callback(this, &QEI::encode)); - } - - //If we're using X4 encoding, then attach interrupts to channel B too. - if (encoding == X4_ENCODING) { - channelB_.rise(mbed::callback(this, &QEI::encode)); - channelB_.fall(mbed::callback(this, &QEI::encode)); - } + setEncoding(encoding); //Index is optional. if (index != NC) { index_.rise(mbed::callback(this, &QEI::index)); @@ -193,6 +181,24 @@ int QEI::getRevolutions(void) { } +void QEI::setEncoding(Encoding encoding) { + //X2 encoding uses interrupts on only channel A. + //X4 encoding uses interrupts on channel A, + //and on channel B. + channelA_.rise(mbed::callback(this, &QEI::encode)); + if(encoding != X1_ENCODING){ + channelA_.fall(mbed::callback(this, &QEI::encode)); + } else { + channelA_.fall(0); + } + + //If we're using X4 encoding, then attach interrupts to channel B too. + if (encoding == X4_ENCODING) { + channelB_.rise(mbed::callback(this, &QEI::encode)); + channelB_.fall(mbed::callback(this, &QEI::encode)); + } +} + // +-------------+ // | X1 Encoding | // +-------------+ diff --git a/src/utility/QEI/QEI.h b/src/utility/QEI/QEI.h index 8e6fba0..caa449d 100644 --- a/src/utility/QEI/QEI.h +++ b/src/utility/QEI/QEI.h @@ -208,6 +208,13 @@ class QEI { */ int getRevolutions(void); + /** + * Set the ecoding type of the encoder. + * + * Changes the type of encoding used by the encoder from the default X2_ENCODING. + */ + void setEncoding(Encoding encoding); + private: /** From 4ae895c814cfc783d89c317fb8386973679ed79b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 17:20:46 +0000 Subject: [PATCH 19/27] Bump actions/download-artifact from 4 to 5 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 53a9f54..72ec06b 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v4 - name: Download configuration files artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} path: ${{ env.CONFIGURATIONS_FOLDER }} From d53d823584210b91a498324921960d5c9004502e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 01:09:22 +0000 Subject: [PATCH 20/27] Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/check-arduino.yml | 2 +- .github/workflows/compile-examples.yml | 2 +- .github/workflows/spell-check.yml | 2 +- .github/workflows/sync-labels.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-arduino.yml b/.github/workflows/check-arduino.yml index e818685..e13b990 100644 --- a/.github/workflows/check-arduino.yml +++ b/.github/workflows/check-arduino.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Arduino Lint uses: arduino/arduino-lint-action@v2 diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index b03232d..bcbd662 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Compile example sketches uses: arduino/compile-sketches@v1 diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index ef7d894..19f5d38 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Spell check uses: codespell-project/actions-codespell@master diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 72ec06b..62c898a 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Download JSON schema for labels configuration file id: download-schema @@ -105,7 +105,7 @@ jobs: echo "::set-output name=flag::--dry-run" - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Download configuration files artifact uses: actions/download-artifact@v5 From 52edbcff5a56f6164081bbaeb9961f630306b561 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:23:04 +0000 Subject: [PATCH 21/27] Bump actions/upload-artifact from 4 to 5 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/compile-examples.yml | 2 +- .github/workflows/sync-labels.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index bcbd662..deceb19 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -54,7 +54,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Save memory usage change report as artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: if-no-files-found: error path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 62c898a..23a751a 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -70,7 +70,7 @@ jobs: file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }} - name: Pass configuration files to next job via workflow artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: path: | *.yaml From e3996b88789855b62e376c6b2e3833ec05e9f61a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:37:05 +0000 Subject: [PATCH 22/27] Bump actions/download-artifact from 5 to 6 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 62c898a..96b9914 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v5 - name: Download configuration files artifact - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v6 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} path: ${{ env.CONFIGURATIONS_FOLDER }} From e962b4c007a1847d38cb6b5afb4eed63e9b973ff Mon Sep 17 00:00:00 2001 From: svollenweider <34137138+svollenweider@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:23:18 +0100 Subject: [PATCH 23/27] Add `config` parameter to RS485 initialization (#27) * Update RS485CommClass.cpp Added RS485Config * Update RS485CommClass.h * Update RS485_fullduplex.ino * Update RS485_halfduplex.ino * Removed = in cpp --- examples/RS485_fullduplex/RS485_fullduplex.ino | 4 ++-- examples/RS485_halfduplex/RS485_halfduplex.ino | 4 ++-- src/RS485CommClass.cpp | 6 +++--- src/RS485CommClass.h | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/RS485_fullduplex/RS485_fullduplex.ino b/examples/RS485_fullduplex/RS485_fullduplex.ino index 71a9dd4..ff4dbe6 100644 --- a/examples/RS485_fullduplex/RS485_fullduplex.ino +++ b/examples/RS485_fullduplex/RS485_fullduplex.ino @@ -38,7 +38,7 @@ void setup() { // - Half Duplex // - No A/B and Y/Z 120 Ohm termination enabled // Enable the RS485/RS232 system - MachineControl_RS485Comm.begin(115200, 0, 500); // Specify baudrate, and preamble and postamble times for RS485 communication + MachineControl_RS485Comm.begin(115200, SERIAL_8N1, 0, 500); // Specify baudrate, serial_config and preamble and postamble times for RS485 communication // Enable Full Duplex mode // This will also enable A/B and Y/Z 120 Ohm termination resistors @@ -70,4 +70,4 @@ void loop() { sendNow = millis() + sendInterval; } -} \ No newline at end of file +} diff --git a/examples/RS485_halfduplex/RS485_halfduplex.ino b/examples/RS485_halfduplex/RS485_halfduplex.ino index 6bb6a36..9da354a 100644 --- a/examples/RS485_halfduplex/RS485_halfduplex.ino +++ b/examples/RS485_halfduplex/RS485_halfduplex.ino @@ -37,7 +37,7 @@ void setup() { // - Half Duplex // - No A/B and Y/Z 120 Ohm termination enabled // Enable the RS485/RS232 system - MachineControl_RS485Comm.begin(115200, 0, 500); // Specify baudrate, and preamble and postamble times for RS485 communication + MachineControl_RS485Comm.begin(115200, SERIAL_8N1, 0, 500); // Specify baudrate, serial config and preamble and postamble times for RS485 communication // Start in receive mode MachineControl_RS485Comm.receive(); @@ -65,4 +65,4 @@ void loop() { sendNow = millis() + sendInterval; } -} \ No newline at end of file +} diff --git a/src/RS485CommClass.cpp b/src/RS485CommClass.cpp index 4cd4b75..c7afa6d 100644 --- a/src/RS485CommClass.cpp +++ b/src/RS485CommClass.cpp @@ -17,7 +17,7 @@ RS485CommClass::RS485CommClass(arduino::UART& uart_itf, PinName rs_tx_pin, PinNa RS485CommClass::~RS485CommClass() { } -void RS485CommClass::begin(unsigned long baudrate, int predelay, int postdelay) { +void RS485CommClass::begin(unsigned long baudrate, uint16_t config, int predelay, int postdelay) { /* Pinout configuration */ pinMode(PinNameToIndex(MC_RS485_TX_PIN), OUTPUT); pinMode(PinNameToIndex(MC_RS485_RX_PIN), OUTPUT); @@ -45,7 +45,7 @@ void RS485CommClass::begin(unsigned long baudrate, int predelay, int postdelay) _enable(); /* Call begin() base class to initialize RS485 communication */ - RS485Class::begin(baudrate, predelay, postdelay); + RS485Class::begin(baudrate, config, predelay, postdelay); return; } @@ -92,4 +92,4 @@ void RS485CommClass::_disable() { arduino::UART _UART4_ {MC_RS485_TX_PIN, MC_RS485_RX_PIN, NC, NC}; RS485CommClass MachineControl_RS485Comm(_UART4_); -/**** END OF FILE ****/ \ No newline at end of file +/**** END OF FILE ****/ diff --git a/src/RS485CommClass.h b/src/RS485CommClass.h index b518533..a87d91e 100644 --- a/src/RS485CommClass.h +++ b/src/RS485CommClass.h @@ -54,10 +54,11 @@ class RS485CommClass : public RS485Class { * This method initializes the RS485 communication protocol with the specified baud rate and pre/post delays. * * @param baudrate The desired baud rate for the RS485 communication. + * @param config The desired Serial config (bits, parity and stopbits), see HardwareSerial.h * @param predelay The delay before sending data in the RS485 communication (default: RS485_DEFAULT_PRE_DELAY). * @param postdelay The delay after sending data in the RS485 communication (default: RS485_DEFAULT_POST_DELAY). */ - void begin(unsigned long baudrate = 115200, int predelay = RS485_DEFAULT_PRE_DELAY, int postdelay = RS485_DEFAULT_POST_DELAY); + void begin(unsigned long baudrate = 115200, uint16_t config = SERIAL_8N1, int predelay = RS485_DEFAULT_PRE_DELAY, int postdelay = RS485_DEFAULT_POST_DELAY); /** * @brief Close the RS485 communication protocol. From 54daa464fe1d6c2a82e2f9b48c99ff6b0d819dd1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:24:26 +0100 Subject: [PATCH 24/27] Bump actions/checkout from 5 to 6 (#34) Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check-arduino.yml | 2 +- .github/workflows/compile-examples.yml | 2 +- .github/workflows/spell-check.yml | 2 +- .github/workflows/sync-labels.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-arduino.yml b/.github/workflows/check-arduino.yml index e13b990..97b2bf2 100644 --- a/.github/workflows/check-arduino.yml +++ b/.github/workflows/check-arduino.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Arduino Lint uses: arduino/arduino-lint-action@v2 diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index deceb19..755d8cd 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Compile example sketches uses: arduino/compile-sketches@v1 diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 19f5d38..8fc4b8c 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Spell check uses: codespell-project/actions-codespell@master diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index cb55211..d49c1cb 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Download JSON schema for labels configuration file id: download-schema @@ -105,7 +105,7 @@ jobs: echo "::set-output name=flag::--dry-run" - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Download configuration files artifact uses: actions/download-artifact@v6 From 55173d6cbdf55d8ba576126837f8cb2819b63725 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:25:00 +0100 Subject: [PATCH 25/27] Bump version to 1.0.4 --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index b523049..850305f 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_PortentaMachineControl -version=1.0.3 +version=1.0.4 author=Arduino maintainer=Arduino sentence=Arduino Library for Portenta Machine Control (PMC) From e3bdded5d3c8f59e65a8e98a6702c1bf18d62b5c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:23:49 +0000 Subject: [PATCH 26/27] Bump actions/upload-artifact from 5 to 6 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/compile-examples.yml | 2 +- .github/workflows/sync-labels.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 755d8cd..af33e87 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -54,7 +54,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Save memory usage change report as artifact - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 with: if-no-files-found: error path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d49c1cb..ad0e59e 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -70,7 +70,7 @@ jobs: file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }} - name: Pass configuration files to next job via workflow artifact - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 with: path: | *.yaml From bf2079752640a1cc56b41d8b92e953f0dc177621 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:23:54 +0000 Subject: [PATCH 27/27] Bump actions/download-artifact from 6 to 7 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d49c1cb..485e8e6 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v6 - name: Download configuration files artifact - uses: actions/download-artifact@v6 + uses: actions/download-artifact@v7 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} path: ${{ env.CONFIGURATIONS_FOLDER }}