Skip to content

Commit 6e7cd18

Browse files
library renaming
1 parent 6f438c2 commit 6e7cd18

File tree

20 files changed

+58
-22
lines changed

20 files changed

+58
-22
lines changed

Diff for: examples/Analog_Out/Analog_Out.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
* - Portenta Machine Control
1111
*
1212
* Initial author: Riccardo Rizzo @Rocketct
13+
* Authors who have contributed to updates:
14+
* - Leonardo Cavagnis @leonardocavagnis
1315
*/
1416

15-
#include <Arduino_MachineControl.h>
17+
#include <Arduino_PortentaMachineControl.h>
1618

1719
#define PERIOD_MS 4 /* 4ms - 250Hz */
1820

Diff for: examples/Analog_input/Analog_input_0_10V/Analog_input_0_10V.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
* - Portenta Machine Control
1313
*
1414
* Initial author: Riccardo Rizzo @Rocketct
15+
* Authors who have contributed to updates:
16+
* - Leonardo Cavagnis @leonardocavagnis
1517
*/
1618

17-
#include <Arduino_MachineControl.h>
19+
#include <Arduino_PortentaMachineControl.h>
1820

1921
const float RES_DIVIDER = 0.28057;
2022
const float REFERENCE = 3.0;

Diff for: examples/Analog_input/Analog_input_4_20mA/Analog_input_4_20mA.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
* - Portenta Machine Control
1313
*
1414
* Initial author: Riccardo Rizzo @Rocketct
15+
* Authors who have contributed to updates:
16+
* - Leonardo Cavagnis @leonardocavagnis
1517
*/
1618

17-
#include <Arduino_MachineControl.h>
19+
#include <Arduino_PortentaMachineControl.h>
1820

1921
#define SENSE_RES 120
2022

Diff for: examples/Analog_input/Analog_input_NTC/Analog_input_NTC.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* - Portenta Machine Control
1515
*
1616
* Initial author: Riccardo Rizzo @Rocketct
17+
* Authors who have contributed to updates:
18+
* - Leonardo Cavagnis @leonardocavagnis
1719
*/
1820

19-
#include <Arduino_MachineControl.h>
21+
#include <Arduino_PortentaMachineControl.h>
2022

2123
#define REFERENCE_RES 100000
2224

Diff for: examples/Analog_input/Fast_Analog_input_0_10V/Fast_Analog_input_0_10V.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Initial author: Leonardo Cavagnis @leonardocavagnis
1515
*/
1616

17-
#include <Arduino_MachineControl.h>
17+
#include <Arduino_PortentaMachineControl.h>
1818
#include <Arduino_AdvancedAnalog.h>
1919

2020
const float RES_DIVIDER = 0.28057;

Diff for: examples/CAN/ReadCan/ReadCan.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* - Portenta Machine Control
1010
*
1111
* Initial author: Riccardo Rizzo @Rocketct
12+
* Authors who have contributed to updates:
13+
* - Leonardo Cavagnis @leonardocavagnis
1214
*/
1315

14-
#include <Arduino_MachineControl.h>
16+
#include <Arduino_PortentaMachineControl.h>
1517

1618
void setup() {
1719
Serial.begin(9600);

Diff for: examples/CAN/WriteCan/WriteCan.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* - Portenta Machine Control
1010
*
1111
* Initial author: Riccardo Rizzo @Rocketct
12+
* Authors who have contributed to updates:
13+
* - Leonardo Cavagnis @leonardocavagnis
1214
*/
1315

14-
#include <Arduino_MachineControl.h>
16+
#include <Arduino_PortentaMachineControl.h>
1517

1618
static uint32_t const CAN_ID = 13ul;
1719
static uint32_t msg_cnt = 0;

Diff for: examples/Digital_output/Digital_output.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
* NOTE: connect pin "24V IN" of the DIGITAL_OUTPUTS connector to 24V
1717
*
1818
* Initial author: Riccardo Rizzo @Rocketct
19+
* Authors who have contributed to updates:
20+
* - Leonardo Cavagnis @leonardocavagnis
1921
*/
2022

21-
#include <Arduino_MachineControl.h>
23+
#include <Arduino_PortentaMachineControl.h>
2224

2325
void setup() {
2426
Serial.begin(9600);

Diff for: examples/Digital_programmable/Digital_input/Digital_input.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
* - Portenta Machine Control
99
*
1010
* Initial author: Riccardo Rizzo @Rocketct
11+
* Authors who have contributed to updates:
12+
* - Leonardo Cavagnis @leonardocavagnis
1113
*/
1214

13-
#include <Arduino_MachineControl.h>
15+
#include <Arduino_PortentaMachineControl.h>
1416

1517
uint16_t readings = 0;
1618

Diff for: examples/Digital_programmable/GPIO_programmable/GPIO_programmable.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
* - Portenta Machine Control
1111
*
1212
* Initial author: Riccardo Rizzo @Rocketct
13+
* Authors who have contributed to updates:
14+
* - Leonardo Cavagnis @leonardocavagnis
1315
*/
1416

15-
#include <Arduino_MachineControl.h>
17+
#include <Arduino_PortentaMachineControl.h>
1618

1719
void setup() {
1820
Serial.begin(9600);

Diff for: examples/Encoders/Encoders.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* - Portenta Machine Control
1010
*
1111
* Initial author: Riccardo Rizzo @Rocketct
12+
* Authors who have contributed to updates:
13+
* - Leonardo Cavagnis @leonardocavagnis
1214
*/
1315

14-
#include <Arduino_MachineControl.h>
16+
#include <Arduino_PortentaMachineControl.h>
1517

1618
void setup() {
1719
Serial.begin(9600);

Diff for: examples/RS232/RS232.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* - Connect PMC GND to RS232 Device GND
1515
*
1616
* Initial author: Riccardo Rizzo @Rocketct
17+
* Authors who have contributed to updates:
18+
* - Leonardo Cavagnis @leonardocavagnis
1719
*/
1820

19-
#include <Arduino_MachineControl.h>
21+
#include <Arduino_PortentaMachineControl.h>
2022

2123
constexpr unsigned long sendInterval { 1000 };
2224
unsigned long sendNow { 0 };

Diff for: examples/RS485_fullduplex/RS485_fullduplex.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
* - Connect RXP to Y(+) and RXN to Z(-)
1414
*
1515
* Initial author: Riccardo Rizzo @Rocketct
16+
* Authors who have contributed to updates:
17+
* - Leonardo Cavagnis @leonardocavagnis
1618
*/
1719

18-
#include "Arduino_MachineControl.h"
20+
#include "Arduino_PortentaMachineControl.h"
1921

2022
constexpr unsigned long sendInterval { 1000 };
2123
unsigned long sendNow { 0 };

Diff for: examples/RS485_halfduplex/RS485_halfduplex.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
* - Connect TXP to A(+) and TXN to B(-)
1313
*
1414
* Initial author: Riccardo Rizzo @Rocketct
15+
* Authors who have contributed to updates:
16+
* - Leonardo Cavagnis @leonardocavagnis
1517
*/
1618

17-
#include "Arduino_MachineControl.h"
19+
#include "Arduino_PortentaMachineControl.h"
1820

1921
constexpr unsigned long sendInterval { 1000 };
2022
unsigned long sendNow { 0 };

Diff for: examples/RTC/RTC.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* - Portenta Machine Control
1010
*
1111
* Initial author: Riccardo Rizzo @Rocketct
12+
* Authors who have contributed to updates:
13+
* - Leonardo Cavagnis @leonardocavagnis
1214
*/
1315

14-
#include <Arduino_MachineControl.h>
16+
#include <Arduino_PortentaMachineControl.h>
1517

1618
int year = 20;
1719
int month = 9;

Diff for: examples/RTC_Alarm/RTC_Alarm.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* - Portenta Machine Control
1010
*
1111
* Initial author: Riccardo Rizzo @Rocketct
12+
* Authors who have contributed to updates:
13+
* - Leonardo Cavagnis @leonardocavagnis
1214
*/
1315

14-
#include <Arduino_MachineControl.h>
16+
#include <Arduino_PortentaMachineControl.h>
1517

1618
int hours = 12;
1719
int minutes = 45;

Diff for: examples/Temp_probes_RTD/Temp_probes_RTD.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
* - 3-wire RTD or 2-wire RTD
1414
*
1515
* Initial author: Riccardo Rizzo @Rocketct
16+
* Authors who have contributed to updates:
17+
* - Leonardo Cavagnis @leonardocavagnis
1618
*/
1719

18-
#include <Arduino_MachineControl.h>
20+
#include <Arduino_PortentaMachineControl.h>
1921

2022
// The value of the Rref resistor. Use 430.0 for PT100
2123
#define RREF 400.0

Diff for: examples/Temp_probes_Thermocouples/Temp_probes_Thermocouples.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
* - A J Type thermocouple temperature sensor connected to TEMP PROBES CH3
1313
*
1414
* Initial author: Riccardo Rizzo @Rocketct
15+
* Authors who have contributed to updates:
16+
* - Leonardo Cavagnis @leonardocavagnis
1517
*/
1618

17-
#include <Arduino_MachineControl.h>
19+
#include <Arduino_PortentaMachineControl.h>
1820

1921
void setup() {
2022
Serial.begin(9600);

Diff for: examples/USB_host/USB_host.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* - USB device (e.g., keyboard, mouse, etc.)
1010
*
1111
* Initial author: Riccardo Rizzo @Rocketct
12+
* Authors who have contributed to updates:
13+
* - Leonardo Cavagnis @leonardocavagnis
1214
*/
1315

14-
#include <Arduino_MachineControl.h>
16+
#include <Arduino_PortentaMachineControl.h>
1517

1618
#include <USBHost.h>
1719
#include "TUSB_helpers.h"

Diff for: src/Arduino_MachineControl.h renamed to src/Arduino_PortentaMachineControl.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __ARDUINO_MACHINE_CONTROL_H
2-
#define __ARDUINO_MACHINE_CONTROL_H
1+
#ifndef __ARDUINO_PORTENTA_MACHINE_CONTROL_H
2+
#define __ARDUINO_PORTENTA_MACHINE_CONTROL_H
33

44
#include "AnalogInClass.h"
55
#include "AnalogOutClass.h"
@@ -14,4 +14,4 @@
1414
#include "CANCommClass.h"
1515
#include "RS485CommClass.h"
1616

17-
#endif /* __ARDUINO_MACHINE_CONTROL_H */
17+
#endif /* __ARDUINO_PORTENTA_MACHINE_CONTROL_H */

0 commit comments

Comments
 (0)