Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #118 from leonardocavagnis/deprecation
Browse files Browse the repository at this point in the history
Deprecate library
  • Loading branch information
leonardocavagnis authored Feb 27, 2024
2 parents 688d157 + 87736c2 commit a2a31d3
Show file tree
Hide file tree
Showing 21 changed files with 238 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Portenta Machine Control Library for Arduino
# [Deprecated] Portenta Machine Control Library for Arduino

> [!WARNING]
> This library is deprecated and no longer actively maintained.
>
> We recommend transitioning to the [Arduino_PortentaMachineControl](https://github.com/arduino-libraries/Arduino_PortentaMachineControl) library for ongoing support, new features and contributions. 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 the [examples](./examples/) provided with this library are not compatible with the new 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)
Expand Down
12 changes: 12 additions & 0 deletions examples/Analog_Out/Analog_Out.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Analog out Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Analog in 0 - 10 V Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Analog in 4 - 20 mA Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Analog in NTC Example
Expand Down
12 changes: 12 additions & 0 deletions examples/CAN/ReadCan/ReadCan.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
CAN Read Example
Expand Down
12 changes: 12 additions & 0 deletions examples/CAN/WriteCan/WriteCan.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
CAN Write Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Digital_output/Digital_output.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Digital Output Example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - IOExpander Read And Write Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Digital_programmable/Digital_input/Digital_input.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Digital Input Example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - IOExpander Read And Write Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Encoders/Encoders.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

#include <Arduino_MachineControl.h>

using namespace machinecontrol;
Expand Down
12 changes: 12 additions & 0 deletions examples/RS232/RS232.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
RS232 communication
Expand Down
12 changes: 12 additions & 0 deletions examples/RS485_fullduplex/RS485_fullduplex.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
RS485 Full duplex communication
Expand Down
12 changes: 12 additions & 0 deletions examples/RS485_halfduplex/RS485_halfduplex.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
RS485 Half Duplex communication
Expand Down
12 changes: 12 additions & 0 deletions examples/RTC/RTC.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - RTC Example
Expand Down
12 changes: 12 additions & 0 deletions examples/RTC_Alarm/RTC_Alarm.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - RTC Alarm Example
Expand Down
12 changes: 12 additions & 0 deletions examples/Temp_probes_RTD/Temp_probes_RTD.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Temperature probes RTD example
Expand Down
12 changes: 12 additions & 0 deletions examples/Temp_probes_Thermocouples/Temp_probes_Thermocouples.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

/*
Machine Control - Thermocouples Read Sensors
Expand Down
12 changes: 12 additions & 0 deletions examples/USB_host/USB_host.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* IMPORTANT NOTE:
*
* This example is associated with the deprecated Arduino_MachineControl library.
* We have introduced a new and improved library called Arduino_PortentaMachineControl, which offers enhanced features
* and ongoing support.
* We encourage you to update your projects to use the new library.
*
* The functions and syntax in this example are not compatible with Arduino_PortentaMachineControl.
* Please refer to the migration guide for necessary adjustments.
*/

#include <Arduino_MachineControl.h>
#include <USBHost.h>

Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name=Arduino_MachineControl
version=1.1.1
author=Arduino
maintainer=Arduino <[email protected]>
sentence=Arduino Library for Portenta Machine Control - PMC
paragraph=
sentence=DEPRECATED. Arduino Library for Portenta Machine Control - PMC
paragraph=This library is no longer actively maintained and is deprecated. Consider migrating to the Arduino_PortentaMachineControl library.
category=Communication
url=https://github.com/arduino-libraries/Arduino_MachineControl
architectures=mbed, mbed_portenta
Expand Down

0 comments on commit a2a31d3

Please sign in to comment.