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 1/7] 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 2/7] 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 3/7] 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 4/7] 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 5/7] 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 6/7] 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 7/7] 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)