Skip to content

Commit f217af9

Browse files
authored
Initial commit
0 parents  commit f217af9

File tree

8 files changed

+165
-0
lines changed

8 files changed

+165
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode/
2+
.build/

LICENSE.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
SparkFun License Information
2+
============================
3+
4+
SparkFun uses two different licenses for our files — one for hardware and one for code.
5+
6+
Hardware
7+
---------
8+
9+
**SparkFun hardware is released under [Creative Commons Share-alike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/).**
10+
11+
Note: This is a human-readable summary of (and not a substitute for) the [license](http://creativecommons.org/licenses/by-sa/4.0/legalcode).
12+
13+
You are free to:
14+
15+
Share — copy and redistribute the material in any medium or format
16+
Adapt — remix, transform, and build upon the material
17+
for any purpose, even commercially.
18+
The licensor cannot revoke these freedoms as long as you follow the license terms.
19+
Under the following terms:
20+
21+
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
22+
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
23+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
24+
Notices:
25+
26+
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
27+
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
28+
29+
30+
Code
31+
--------
32+
Library contains code from multiple sources, see top of each file for specific licensing information.
33+
34+
**SparkFun code, firmware, and software is released under the MIT License(http://opensource.org/licenses/MIT).**
35+
36+
The MIT License (MIT)
37+
38+
Copyright (c) 2020 SparkFun Electronics
39+
40+
Permission is hereby granted, free of charge, to any person obtaining a copy
41+
of this software and associated documentation files (the "Software"), to deal
42+
in the Software without restriction, including without limitation the rights
43+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44+
copies of the Software, and to permit persons to whom the Software is
45+
furnished to do so, subject to the following conditions:
46+
47+
The above copyright notice and this permission notice shall be included in all
48+
copies or substantial portions of the Software.
49+
50+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56+
SOFTWARE.
57+
58+
**Analog Devices, firmware and software is subject to software license agreement. See SLA pdf included with this repo.**
59+
License terms outlines in:
60+
2021-05-20-LWSCADIN1110 Click Thru SLA .pdf

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SparkFun_Template_Arduino_Library
2+
========================================
3+
4+
<table class="table table-hover table-striped table-bordered">
5+
<p> TODO: Add product photos and links </p>
6+
</table>
7+
8+
TODO: Add description of product and library
9+
10+
Repository Contents
11+
-------------------
12+
13+
* **/documents** - Data sheets, additional product information
14+
* **/examples** - Example code
15+
* **/src** - Source code
16+
17+
Documentation
18+
--------------
19+
* **[GitHub Repo](https://github.com/sparkfun/TODO)** - TODO: Update URL and description
20+
* **[Hookup Guide](http://docs.sparkfun.com/TODO/)** - TODO: Update URL and description
21+
22+
License Information
23+
-------------------
24+
25+
This product is _**open source**_!
26+
27+
Please review the LICENSE.md file for license information.
28+
29+
If you have any questions or concerns on licensing, please contact technical support on our [SparkFun forums](https://forum.sparkfun.com/viewforum.php?f=152).
30+
31+
Distributed as-is; no warranty is given.
32+
33+
- Your friends at SparkFun.
34+
35+
_<COLLABORATION CREDIT>_

documents/add_documents_here.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add any relevant documents to this director (eg. datasheet), and delete this file.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// TODO: Add includes as needed
2+
#include "SparkFun_Template_Arduino_Library.h"
3+
4+
// TODO: Change Template
5+
TempalteClass myDevice;
6+
7+
void setup()
8+
{
9+
// Start serial
10+
Serial.begin(115200);
11+
Serial.println("Template Example 1 - Basic Uasge"); // TODO: Update
12+
13+
// TODO: Check return value of begin
14+
myDevice.begin();
15+
16+
// TODO: Add other setup code if needed. Most setup should be done in begin()
17+
}
18+
19+
void loop()
20+
{
21+
// TODO: Demonstrate minimal code needed for basic usage
22+
}

library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=SparkFun Template Arduino Library
2+
version=1.0.0
3+
author=SparkFun Electronics <techsupport@sparkfun.com>
4+
maintainer=SparkFun Electronics <sparkfun.com>
5+
sentence=TODO: Add short description
6+
paragraph=TODO: Add long description
7+
category=TODO: Add category (Sensors, Display, Communication, etc.)
8+
url=TODO: Add URL
9+
architectures=TODO: Add architectures (*, esp32, teensy, stm32, megaavr, etc.)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "SparkFun_Template_Arduino_Library.h"
2+
3+
BMI270::BMI270()
4+
{
5+
// TODO: Initialize variables
6+
}
7+
8+
int8_t BMI270::begin()
9+
{
10+
// TODO: Check if device is connected
11+
12+
// TODO: Initialize hardware
13+
14+
// TODO: Return whether successful
15+
return false;
16+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#pragma once
2+
3+
// TODO: Add includes as needed (e.g. #include <Wire.h>, #include <SPI.h>)
4+
#include "Arduino.h"
5+
6+
// TODO: Add constants
7+
8+
// TODO: Implement class
9+
class TemplateClass
10+
{
11+
public:
12+
/// @brief TODO
13+
TemplateClass();
14+
15+
/// @brief TODO
16+
/// @return TODO
17+
bool begin();
18+
19+
// TODO: Add other methods as needed
20+
};

0 commit comments

Comments
 (0)