Skip to content

Commit 3c2525e

Browse files
committed
Adds licensing to the top of the header files
1 parent 85550b2 commit 3c2525e

5 files changed

+131
-28
lines changed

keywords.txt

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ QwiicKX13xCore KEYWORD1
66
==================================
77
FUNCTIONS
88
==================================
9-
beginCore KEYWORD2
10-
beginSPICore KEYWORD2
119
initialize KEYWORD2
1210
runCommandTest KEYWORD2
1311
accelControl KEYWORD2

src/SparkFun_KX13X.h

+45
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
// SparkFun_KX13X.h
2+
//
3+
// This is a library written for the SparkFun Triple Axis Accelerometer - KX132/KX134
4+
//
5+
// SparkFun sells these boards at its website: www.sparkfun.com
6+
//
7+
// Do you like this library? Help support SparkFun. Buy a board!
8+
//
9+
// Written by Elias Santistevan @ SparkFun Electronics, October 2022
10+
//
11+
// Product:
12+
//SparkFun Triple Axis Accelerometer - KX132/KX134 (Qwiic)
13+
// * KX132 - https://www.sparkfun.com/products/17871
14+
// * KX134 - https://www.sparkfun.com/products/17589
15+
//
16+
// Repository:
17+
// https://github.com/sparkfun/SparkFun_KX13X_Arduino_Library
18+
//
19+
// SparkFun code, firmware, and software is released under the MIT
20+
// License(http://opensource.org/licenses/MIT).
21+
//
22+
// SPDX-License-Identifier: MIT
23+
//
24+
// The MIT License (MIT)
25+
//
26+
// Copyright (c) 2022 SparkFun Electronics
27+
// Permission is hereby granted, free of charge, to any person obtaining a
28+
// copy of this software and associated documentation files (the "Software"),
29+
// to deal in the Software without restriction, including without limitation
30+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
31+
// and/or sell copies of the Software, and to permit persons to whom the
32+
// Software is furnished to do so, subject to the following conditions: The
33+
// above copyright notice and this permission notice shall be included in all
34+
// copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED
35+
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
36+
// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
37+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38+
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
39+
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
40+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41+
42+
43+
// The following class implements the Arduino Interface for the SparkFun Triple
44+
// Axis Acceleromters - KX132/KX134.
45+
146
#pragma once
247
#include "SparkFun_Qwiic_KX13X.h"
348
#include <Wire.h>

src/SparkFun_KX13X_regs.h

+42
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
// SparkFun_KX13X_regs.h
2+
//
3+
// This is a library written for the SparkFun Triple Axis Accelerometer - KX132/KX134
4+
//
5+
// SparkFun sells these boards at its website: www.sparkfun.com
6+
//
7+
// Do you like this library? Help support SparkFun. Buy a board!
8+
//
9+
// Written by Elias Santistevan @ SparkFun Electronics, October 2022
10+
//
11+
// Product:
12+
// SparkFun Triple Axis Accelerometer - KX132/KX134 (Qwiic)
13+
// * KX132 - https://www.sparkfun.com/products/17871
14+
// * KX134 - https://www.sparkfun.com/products/17589
15+
//
16+
// Repository:
17+
// https://github.com/sparkfun/SparkFun_KX13X_Arduino_Library
18+
//
19+
// SparkFun code, firmware, and software is released under the MIT
20+
// License(http://opensource.org/licenses/MIT).
21+
//
22+
// SPDX-License-Identifier: MIT
23+
//
24+
// The MIT License (MIT)
25+
//
26+
// Copyright (c) 2022 SparkFun Electronics
27+
// Permission is hereby granted, free of charge, to any person obtaining a
28+
// copy of this software and associated documentation files (the "Software"),
29+
// to deal in the Software without restriction, including without limitation
30+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
31+
// and/or sell copies of the Software, and to permit persons to whom the
32+
// Software is furnished to do so, subject to the following conditions: The
33+
// above copyright notice and this permission notice shall be included in all
34+
// copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED
35+
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
36+
// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
37+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38+
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
39+
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
40+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41+
42+
// This file holds the bit fields for the KX132/KX134 registers.
143

244
#define SFE_KX13X_MAN_ID 0x00// Retuns "KION" in ASCII
345
//

src/SparkFun_Qwiic_KX13X.cpp

-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
/******************************************************************************
2-
SparkFun_Qwiic_KX13X.cpp
3-
SparkFun Qwiic KX13X Library Source File
4-
Elias Santistevan @ SparkFun Electronics
5-
Original Creation Date: March, 2021
6-
7-
This file implements the QwiicKX13XCore, QwiicKX132, and QwiicKX134 class
8-
9-
Development environment specifics:
10-
IDE: Arduino 1.8.12
11-
12-
This code is Lemonadeware; if you see me (or any other SparkFun employee) at the
13-
local, and you've found our code helpful, please buy us a round!
14-
15-
Distributed as-is; no warranty is given.
16-
******************************************************************************/
17-
181
#include "SparkFun_Qwiic_KX13X.h"
192

203

src/SparkFun_Qwiic_KX13X.h

+44-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,48 @@
1-
/******************************************************************************
2-
SparkFun_Qwiic_KX13X.h
3-
Elias Santistevan @ SparkFun Electronics
4-
Original Creation Date: March 2021
1+
// SparkFun_Qwiic_KX13X.h
2+
//
3+
// This is a library written for the SparkFun Triple Axis Accelerometer - KX132/KX134
4+
//
5+
// SparkFun sells these boards at its website: www.sparkfun.com
6+
//
7+
// Do you like this library? Help support SparkFun. Buy a board!
8+
//
9+
// Written by Elias Santistevan @ SparkFun Electronics, October 2022
10+
//
11+
// Product:
12+
//SparkFun Triple Axis Accelerometer - KX132/KX134 (Qwiic)
13+
// * KX132 - https://www.sparkfun.com/products/17871
14+
// * KX134 - https://www.sparkfun.com/products/17589
15+
//
16+
// Repository:
17+
// https://github.com/sparkfun/SparkFun_KX13X_Arduino_Library
18+
//
19+
// SparkFun code, firmware, and software is released under the MIT
20+
// License(http://opensource.org/licenses/MIT).
21+
//
22+
// SPDX-License-Identifier: MIT
23+
//
24+
// The MIT License (MIT)
25+
//
26+
// Copyright (c) 2022 SparkFun Electronics
27+
// Permission is hereby granted, free of charge, to any person obtaining a
28+
// copy of this software and associated documentation files (the "Software"),
29+
// to deal in the Software without restriction, including without limitation
30+
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
31+
// and/or sell copies of the Software, and to permit persons to whom the
32+
// Software is furnished to do so, subject to the following conditions: The
33+
// above copyright notice and this permission notice shall be included in all
34+
// copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED
35+
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
36+
// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
37+
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38+
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
39+
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
40+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41+
42+
43+
// The following class implements the methods to set, get, and read from the SparkFun Triple
44+
// Axis Acceleromter - KX132/KX134.
545

6-
This code is Lemonadeware; if you see me (or any other SparkFun employee) at the
7-
local, and you've found our code helpful, please buy us a round!
8-
9-
Distributed as-is; no warranty is given.
10-
******************************************************************************/
1146

1247
#pragma once
1348

0 commit comments

Comments
 (0)