Skip to content

Commit 87f8575

Browse files
committed
Moves all of STMicroelectronics source files to their own subfolder
* Updated source file pathing in the source files that needed to be changed * Updates examples that were unnecessarily including files that should probably just be included in SparkFun's source files * Moves BSD_3 License to the "st_src" subfolder to reflect the correct licensing for those source files * Adds MIT license to the main repository directory to reflect SparkFun's software contribution with the correct license * Updates the README to reflect the licensing updates
1 parent 1624364 commit 87f8575

12 files changed

+42
-42
lines changed

Diff for: LICENSE.md

+10-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
COPYRIGHT(c) 2018 STMicroelectronics
1+
Copyright © 2022 SparkFun Electronics
22

3-
Redistribution and use in source and binary forms, with or without modification,
4-
are permitted provided that the following conditions are met:
5-
1. Redistributions of source code must retain the above copyright notice,
6-
this list of conditions and the following disclaimer.
7-
2. Redistributions in binary form must reproduce the above copyright notice,
8-
this list of conditions and the following disclaimer in the documentation
9-
and/or other materials provided with the distribution.
10-
3. Neither the name of STMicroelectronics nor the names of its contributors
11-
may be used to endorse or promote products derived from this software
12-
without specific prior written permission.
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”),
4+
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
5+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
136

14-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
11+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
12+
IN THE SOFTWARE.

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Products that use this Library
4747
License Information
4848
-------------------
4949

50-
This product is _**open source**_!
50+
SparkFun's source files are _**open source**_!
5151

5252
Please review the LICENSE.md file for license information.
5353

@@ -57,4 +57,6 @@ Please use, reuse, and modify these files as you see fit. Please maintain attrib
5757

5858
Distributed as-is; no warranty is given.
5959

60+
The source files included in the subfolder **st_src** are licensed differently. They are licensed under the BSD-3 license, check the License.md in
61+
that subfolder for specifics.
6062
- Your friends at SparkFun.

Diff for: examples/Example1_ReadDistance/Example1_ReadDistance.ino

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#include <ComponentObject.h>
2-
#include <RangeSensor.h>
3-
#include <SparkFun_VL53L1X.h>
4-
#include <vl53l1x_class.h>
5-
#include <vl53l1_error_codes.h>
6-
71
/*
82
Reading distance from the laser based VL53L1X
93
By: Nathan Seidle

Diff for: examples/Example7_Calibration/Example7_Calibration.ino

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#include <Arduino.h>
2-
3-
#include <ComponentObject.h>
4-
#include <RangeSensor.h>
5-
#include <SparkFun_VL53L1X.h>
6-
#include <vl53l1x_class.h>
7-
#include <vl53l1_error_codes.h>
8-
91
/*
102
Calling distance offset calibration for the laser based VL53L1X
113
By: Armin Joachimsmeyer

Diff for: src/SparkFun_VL53L1X.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
*/
3232

3333
#include <stdlib.h>
34-
#include "Arduino.h"
3534
#include "SparkFun_VL53L1X.h"
36-
#include "vl53l1x_class.h"
3735

3836
SFEVL53L1X::SFEVL53L1X(TwoWire &i2cPort, int shutdownPin, int interruptPin)
3937
{

Diff for: src/SparkFun_VL53L1X.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434

3535
#include "Arduino.h"
3636
#include "Wire.h"
37-
#include "RangeSensor.h"
38-
#include "vl53l1_error_codes.h"
39-
#include "vl53l1x_class.h"
37+
#include "st_src/RangeSensor.h"
38+
#include "st_src/vl53l1_error_codes.h"
39+
#include "st_src/vl53l1x_class.h"
40+
#include "st_src/ComponentObject.h"
41+
#include "st_src/RangeSensor.h"
4042

4143
#define DISTANCE_SHORT 1
4244
#define DISTANCE_LONG 2
File renamed without changes.

Diff for: src/st_src/LICENSE.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
COPYRIGHT(c) 2018 STMicroelectronics
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
1. Redistributions of source code must retain the above copyright notice,
6+
this list of conditions and the following disclaimer.
7+
2. Redistributions in binary form must reproduce the above copyright notice,
8+
this list of conditions and the following disclaimer in the documentation
9+
and/or other materials provided with the distribution.
10+
3. Neither the name of STMicroelectronics nor the names of its contributors
11+
may be used to endorse or promote products derived from this software
12+
without specific prior written permission.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Diff for: src/RangeSensor.h renamed to src/st_src/RangeSensor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#define __RANGE_SENSOR_CLASS_H
4242

4343
/* Includes ------------------------------------------------------------------*/
44-
#include <ComponentObject.h>
44+
#include <st_src/ComponentObject.h>
4545

4646
/* Classes ------------------------------------------------------------------*/
4747
/** An abstract class for range sensors
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)