Skip to content

Commit 36d748a

Browse files
committed
Rename library to Arduino_MKRTHERM
1 parent 9f23cd5 commit 36d748a

File tree

7 files changed

+44
-23
lines changed

7 files changed

+44
-23
lines changed

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
= MKRTherm Library for Arduino =
1+
= MKRTHERM Library for Arduino =
22

3-
Allows you to read the temperature sensors conencted to your MKR Therm shield.
3+
Allows you to read the temperature sensors conencted to your MKR THERM shield.
44

55
== License ==
66

examples/ReadSensor/ReadSensor.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
MKR ENV Shield - Read Sensors
2+
MKR THERM Shield - Read Sensors
33
4-
This example reads the sensor connected to the MKR Therm shield
4+
This example reads the sensor connected to the MKR THERM shield
55
and prints them to the Serial Monitor once a second.
66
77
The circuit:
88
- Arduino MKR board
9-
- Arduino MKR Therm Shield attached
10-
- A Thermocouple temperature sensor connected to the shield
9+
- Arduino MKR THERM Shield attached
10+
- A thermocouple temperature sensor connected to the shield
1111
1212
This example code is in the public domain.
1313
*/
1414

15-
#include <MKRTherm.h>
15+
#include <Arduino_MKRTHERM.h>
1616

1717
void setup() {
1818

@@ -21,7 +21,7 @@ void setup() {
2121
while (!Serial);
2222

2323
if (!THERM.begin()) {
24-
Serial.println("Failed to initialize MKR Therm shield!");
24+
Serial.println("Failed to initialize MKR THERM shield!");
2525
while (1);
2626
}
2727
}
@@ -39,4 +39,4 @@ void loop() {
3939
Serial.println();
4040

4141
delay(1000);
42-
}
42+
}

keywords.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#######################################
2-
# Syntax Coloring Map For MKRTherm
2+
# Syntax Coloring Map For Arduino_MKRTHERM
33
#######################################
44
# Class
55
#######################################
66

7-
MKRTherm KEYWORD1
7+
Arduino_MKRTHERM KEYWORD1
8+
MKRTHERM KEYWORD1
89
THERM KEYWORD1
910

1011
#######################################

library.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name=MKRTherm
1+
name=Arduino_MKRTHERM
22
version=1.0.0
33
author=Arduino
44
maintainer=Arduino <[email protected]>
5-
sentence=Allows you to read the temperature sensors conencted to your MKR Therm shield.
5+
sentence=Allows you to read the temperature sensors connected to your MKR THERM shield.
66
paragraph=
77
category=Sensors
8-
url=https://github.com/arduino-libraries/MKRTherm
8+
url=https://github.com/arduino-libraries/Arduino_MKRTHERM
99
architectures=samd
10-
includes=MKRTherm.h
10+
includes=Arduino_MKRTHERM.h

src/Arduino_MKRTHERM.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
This file is part of the Arduino_MKRTHERM library.
3+
Copyright (c) 2019 Arduino SA. All rights reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
20+
#ifndef _ARDUINO_MKRTHERM_H_
21+
#define _ARDUINO_MKRTHERM_H_
22+
23+
#include "MKRTHERM.h"
24+
25+
#endif

src/MKRTherm.cpp renamed to src/MKRTHERM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
This file is part of the MKRTherm library.
2+
This file is part of the Arduino_MKRTHERM library.
33
Copyright (c) 2019 Arduino SA. All rights reserved.
44
55
This library is free software; you can redistribute it and/or
@@ -17,7 +17,7 @@
1717
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20-
#include "MKRTherm.h"
20+
#include "MKRTHERM.h"
2121

2222
THERMClass::THERMClass(int cs, SPIClass& spi) :
2323
_cs(cs),

src/MKRTherm.h renamed to src/MKRTHERM.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
This file is part of the MKRTherm library.
2+
This file is part of the Arduino_MKRTHERM library.
33
Copyright (c) 2019 Arduino SA. All rights reserved.
44
55
This library is free software; you can redistribute it and/or
@@ -17,23 +17,19 @@
1717
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20-
2120
#ifndef _MKRTHERM_H_
2221
#define _MKRTHERM_H_
2322

24-
2523
#include <Arduino.h>
2624
#include <SPI.h>
2725

28-
2926
class THERMClass {
3027
public:
3128
THERMClass(int cs = A4, SPIClass& spi = SPI);
3229

3330
int begin();
3431
void end();
3532

36-
3733
float readTemperature();
3834
float readInternalTemperature();
3935

@@ -43,7 +39,6 @@ class THERMClass {
4339
int _cs;
4440
SPIClass* _spi;
4541
SPISettings _spiSettings;
46-
4742
};
4843

4944
extern THERMClass THERM;

0 commit comments

Comments
 (0)