Skip to content

Commit 0279a13

Browse files
committed
- Changed Header management
- Changed the Copyright - Modified Header's example Generalized the library name and added a header for nano
1 parent 1f46fd4 commit 0279a13

22 files changed

+86
-42
lines changed

examples/Flasher/Flasher.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "Wire.h"
1111
#include "fw.h"
12-
#include "MKRMotorCarrier.h"
12+
#include "ArduinoMotorCarrier.h"
1313

1414
#define I2C_ADDRESS 0x09
1515

examples/Motor_test/Motor_test.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <MKRMotorCarrier.h>
1+
#include <ArduinoMotorCarrier.h>
22
#define INTERRUPT_PIN 6
33

44
//Variable to store the battery voltage
@@ -89,4 +89,4 @@ void loop() {
8989
//wait
9090
delay(50);
9191
}
92-
}
92+
}

examples/Motor_test_encoder/Motor_test_encoder.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <MKRMotorCarrier.h>
1+
#include <ArduinoMotorCarrier.h>
22
#define INTERRUPT_PIN 6
33

44
//Variable to store the battery voltage

examples/Servo_test/Servo_test.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#include <MKRMotorCarrier.h>
2+
#include <ArduinoMotorCarrier.h>
33
#define INTERRUPT_PIN 6
44

55
//Variable to store the battery voltage
@@ -82,4 +82,4 @@ void loop() {
8282
controller.ping();
8383
//wait
8484
delay(50);
85-
}
85+
}

examples/Test/Test.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This example code is in the public domain.
66
*/
77

8-
#include "MKRMotorCarrier.h"
8+
#include "ArduinoMotorCarrier.h"
99

1010
void setup() {
1111

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name=MKRMotorCarrier
1+
name=ArduinoMotorCarrier
22
version=1.0.5
33
author=Arduino
44
maintainer=Arduino <[email protected]>
5-
sentence=Allows to use the MKR Motor Carrier
6-
paragraph=Allows to use the MKR Motor Carrier
5+
sentence=Allows to use the Arduino Motor shields
6+
paragraph=Allows to use the Arduino Motor shields
77
category=Signal Input/Output
88
url=http://www.arduino.cc/en/Reference/
99
architectures=samd

src/MKRMotorShield.cpp renamed to src/ArduinoMotorCarrier.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
MKRMotorShield.cpp - Library for Arduino MKR Motor Shield
3-
Copyright (c) 2018 Arduino AG. All right reserved.
2+
ArduinoMotorCarrier.cpp - Library for Arduino Motor Shields
3+
Copyright (c) 2018-2019 Arduino AG. All right reserved.
44
This library is free software; you can redistribute it and/or
55
modify it under the terms of the GNU Lesser General Public
66
License as published by the Free Software Foundation; either
@@ -14,7 +14,7 @@
1414
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1515
*/
1616

17-
#include "MKRMotorShield.h"
17+
#include "ArduinoMotorCarrier.h"
1818

1919
namespace mc {
2020
void setDataPIDGains(Commands cmd, uint8_t target, int16_t P, int16_t I, int16_t D) {

src/MKRMotorShield.h renamed to src/ArduinoMotorCarrier.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
MKRMotorShield.h - Library for Arduino MKR Motor Shield
3-
Copyright (c) 2018 Arduino AG. All right reserved.
2+
ArduinoMotorCarrier.h - Library for Arduino Motor Shields
3+
Copyright (c) 2018-2019 Arduino AG. All right reserved.
44
This library is free software; you can redistribute it and/or
55
modify it under the terms of the GNU Lesser General Public
66
License as published by the Free Software Foundation; either
@@ -14,8 +14,8 @@
1414
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1515
*/
1616

17-
#ifndef __MKRMOTORSHIELD__
18-
#define __MKRMOTORSHIELD__
17+
#ifndef __ARDUINOMOTORSHIELD__
18+
#define __ARDUINOMOTORSHIELD__
1919

2020
#include <Wire.h>
2121
#include "Encoder.h"

src/Battery.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
Battery.cpp - Library for Arduino MKR Motor Shield
3-
Copyright (c) 2018 Arduino AG. All right reserved.
2+
Battery.cpp - Library for Arduino Motor Shields
3+
Copyright (c) 2018-2019 Arduino AG. All right reserved.
44
This library is free software; you can redistribute it and/or
55
modify it under the terms of the GNU Lesser General Public
66
License as published by the Free Software Foundation; either

src/Battery.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
Battery.h - Library for Arduino MKR Motor Shield
3-
Copyright (c) 2018 Arduino AG. All right reserved.
2+
Battery.h - Library for Arduino Motor Shields
3+
Copyright (c) 2018-2019 Arduino AG. All right reserved.
44
This library is free software; you can redistribute it and/or
55
modify it under the terms of the GNU Lesser General Public
66
License as published by the Free Software Foundation; either

0 commit comments

Comments
 (0)