Skip to content

Commit f51a6f1

Browse files
committed
Correct typos in comments and documentation
1 parent e9547ad commit f51a6f1

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

examples/ReadSensors/ReadSensors.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MKR ENV Shield - Read Sensors
33
4-
This example reads the sensors on-board the MKR ENV shield
4+
This example reads the sensors on-board the MKR ENV Shield
55
and prints them to the Serial Monitor once a second.
66
77
The circuit:
@@ -18,7 +18,7 @@ void setup() {
1818
while (!Serial);
1919

2020
if (!ENV.begin()) {
21-
Serial.println("Failed to initialize MKR ENV shield!");
21+
Serial.println("Failed to initialize MKR ENV Shield!");
2222
while (1);
2323
}
2424
}

examples/ReadSensorsImperial/ReadSensorsImperial.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
MKR ENV Shield - Read Sensors Imperial
33
4-
This example reads the sensors on-board the MKR ENV shield
4+
This example reads the sensors on-board the MKR ENV Shield
55
and prints them in imperial units to the Serial Monitor once a second.
66
77
The circuit:
@@ -18,7 +18,7 @@ void setup() {
1818
while (!Serial);
1919

2020
if (!ENV.begin()) {
21-
Serial.println("Failed to initialize MKR ENV shield!");
21+
Serial.println("Failed to initialize MKR ENV Shield!");
2222
while (1);
2323
}
2424
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=Arduino_MKRENV
22
version=1.2.0
33
author=Arduino
44
maintainer=Arduino <[email protected]>
5-
sentence=Allows you to read the temperature, humidity, pressure, light and UV sensors of your MKR ENV shield.
5+
sentence=Allows you to read the temperature, humidity, pressure, light and UV sensors of your MKR ENV Shield.
66
paragraph=
77
category=Sensors
88
url=http://github.com/arduino-libraries/Arduino_MKRENV

src/MKRENV.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ float ENVClass::readPressure(int units)
163163
(i2cRead(LPS22HB_ADDRESS, LPS22HB_PRESS_OUT_L_REG) << 8) |
164164
(i2cRead(LPS22HB_ADDRESS, LPS22HB_PRESS_OUT_H_REG) << 16)) / 40960.0;
165165

166-
if (units == MILLIBAR) { // 1 kPa = 10 MILLIBAR
166+
if (units == MILLIBAR) { // 1 kPa = 10 millibar
167167
return reading * 10;
168168
} else if (units == PSI) { // 1 kPa = 0.145038 PSI
169169
return reading * 0.145038;
@@ -178,15 +178,15 @@ float ENVClass::readIlluminance(int units)
178178
float mV = (analogRead(_lightSensorPin) * 3300.0) / 1023.0;
179179

180180
// 5 mV per lux
181-
float reading = (mV / 5.0); // Readings are in Lux scale
182-
if (units == FOOTCANDLE) { // 1 Lux = 0.092903 Foot-Candle
181+
float reading = (mV / 5.0); // Readings are in lux scale
182+
if (units == FOOTCANDLE) { // 1 lux = 0.092903 foot-candle
183183
return reading * 0.092903;
184184
} else {
185-
return reading; // 1 Lux = 1 Meter-Candle
185+
return reading; // 1 lux = 1 meter-candle
186186
}
187187
}
188188

189-
// UV formula's and constants based on:
189+
// UV formulas and constants based on:
190190
// https://www.vishay.com/docs/84339/designingveml6075.pdf
191191

192192
float ENVClass::readUVA()

0 commit comments

Comments
 (0)