Skip to content

Commit 45f28a3

Browse files
committed
Correct typos in comments and documentation
1 parent 0965df0 commit 45f28a3

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml/badge.svg["Compile Examples status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml"]
77
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml/badge.svg["Spell Check status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml"]
88

9-
Allows you to read the temperature sensors connected to your MKR THERM shield.
9+
Allows you to read the temperature sensors connected to your MKR THERM Shield.
1010

1111
For more information about this library please visit us at https://www.arduino.cc/en/Reference/{repository-name}
1212

examples/ReadSensor/ReadSensor.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
MKR THERM Shield - Read Sensors
33
44
This example reads the temperatures measured by the thermocouple
5-
connected to the MKR THERM shield and prints them to the Serial Monitor
5+
connected to the MKR THERM Shield and prints them to the Serial Monitor
66
once a second.
77
88
The circuit:
99
- Arduino MKR board
1010
- Arduino MKR THERM Shield attached
11-
- A K Type thermocouple temperature sensor connected to the shield
11+
- A type K thermocouple temperature sensor connected to the shield
1212
1313
This example code is in the public domain.
1414
*/
@@ -22,7 +22,7 @@ void setup() {
2222
while (!Serial);
2323

2424
if (!THERM.begin()) {
25-
Serial.println("Failed to initialize MKR THERM shield!");
25+
Serial.println("Failed to initialize MKR THERM Shield!");
2626
while (1);
2727
}
2828
}

examples/ReadSensorOtherUnits/ReadSensorOtherUnits.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
MKR THERM Shield - Read Sensors
33
44
This example reads the temperatures (in Fahrenheit and kelvins) measured by the thermocouple
5-
connected to the MKR THERM shield and prints them to the Serial Monitor
5+
connected to the MKR THERM Shield and prints them to the Serial Monitor
66
once a second.
77
88
The circuit:
99
- Arduino MKR board
1010
- Arduino MKR THERM Shield attached
11-
- A K Type thermocouple temperature sensor connected to the shield
11+
- A type K thermocouple temperature sensor connected to the shield
1212
1313
This example code is in the public domain.
1414
*/
@@ -22,7 +22,7 @@ void setup() {
2222
while (!Serial);
2323

2424
if (!THERM.begin()) {
25-
Serial.println("Failed to initialize MKR THERM shield!");
25+
Serial.println("Failed to initialize MKR THERM Shield!");
2626
while (1);
2727
}
2828
}
@@ -37,7 +37,7 @@ void loop() {
3737
Serial.print(THERM.readTemperature(FAHRENHEIT));
3838
Serial.println(" °F");
3939

40-
Serial.print("Temperature in Kelvin ");
40+
Serial.print("Temperature in kelvin ");
4141
Serial.print(THERM.readTemperature(KELVIN));
4242
Serial.println(" K");
4343

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ 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 connected 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
88
url=https://github.com/arduino-libraries/Arduino_MKRTHERM

src/MKRTHERM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ float THERMClass::readTemperature(int units)
8585
return NAN;
8686
}
8787
// The temperature is stored in the last 14 word's bits
88-
// sendend by the Thermocouple-to-Digital Converter
88+
// sent by the Thermocouple-to-Digital Converter
8989
if (rawword & 0x80000000) {
9090
// Negative value, drop the lower 18 bits and explicitly extend sign bits.
9191
rawword = 0xFFFFC000 | ((rawword >> 18) & 0x00003FFFF);
@@ -116,9 +116,9 @@ float THERMClass::readReferenceTemperature()
116116
rawword >>= 4;
117117

118118
// The cold junction reference temperature is stored in the first 11 word's bits
119-
// sendend by the Thermocouple-to-Digital Converter
119+
// sent by the Thermocouple-to-Digital Converter
120120
rawword = rawword & 0x7FF;
121-
// check sign bit and convert to negative value.
121+
// check sign bit and convert to negative value.
122122
if (rawword & 0x800) {
123123
ref = (0xF800 | (rawword & 0x7FF))*0.0625;
124124
} else {

0 commit comments

Comments
 (0)