Skip to content

Commit 9024872

Browse files
committed
code spell checking - part3 (usermods)
if you can spell Fahrenheit, you can't spell Celsius. And vice versa :-)
1 parent d00b32e commit 9024872

File tree

41 files changed

+98
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+98
-98
lines changed

usermods/Animated_Staircase/Animated_Staircase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class Animated_Staircase : public Usermod {
317317
seg.setOption(SEG_OPTION_ON, true);
318318
}
319319
strip.trigger(); // force strip update
320-
stateChanged = true; // inform external dvices/UI of change
320+
stateChanged = true; // inform external devices/UI of change
321321
colorUpdated(CALL_MODE_DIRECT_CHANGE);
322322
DEBUG_PRINTLN(F("Animated Staircase disabled."));
323323
}
@@ -501,7 +501,7 @@ class Animated_Staircase : public Usermod {
501501
bottomEchoPin = top[FPSTR(_bottomEcho_pin)] | bottomEchoPin;
502502

503503
topMaxDist = top[FPSTR(_topEchoCm)] | topMaxDist;
504-
topMaxDist = min(150,max(30,(int)topMaxDist)); // max distnace ~1.5m (a lag of 9ms may be expected)
504+
topMaxDist = min(150,max(30,(int)topMaxDist)); // max distance ~1.5m (a lag of 9ms may be expected)
505505
bottomMaxDist = top[FPSTR(_bottomEchoCm)] | bottomMaxDist;
506506
bottomMaxDist = min(150,max(30,(int)bottomMaxDist)); // max distance ~1.5m (a lag of 9ms may be expected)
507507

usermods/Animated_Staircase/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Maximum distance for ultrasonic sensor can be configured as the time needed for
3838
You _may_ need to use 10k pull-down resistors on the selected PIR pins, depending on the sensor.
3939

4040
## WLED configuration
41-
1. In the WLED UI, confgure a segment for each step. The lowest step of the stairs is the
41+
1. In the WLED UI, configure a segment for each step. The lowest step of the stairs is the
4242
lowest segment id.
4343
2. Save your segments into a preset.
4444
3. Ideally, add the preset in the config > LED setup menu to the "apply
@@ -91,7 +91,7 @@ To enable the usermod again, use `"enabled":true`.
9191
Alternatively you can use _Usermod_ Settings page where you can change other parameters as well.
9292

9393
### Changing animation parameters and detection range of the ultrasonic HC-SR04 sensor
94-
Using _Usermod_ Settings page you can define different usermod parameters, includng sensor pins, delay between segment activation etc.
94+
Using _Usermod_ Settings page you can define different usermod parameters, including sensor pins, delay between segment activation etc.
9595

9696
When an ultrasonic sensor is enabled you can enter maximum detection distance in centimeters separately for top and bottom sensors.
9797

usermods/BH1750_v2/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The luminance is displayed in both the Info section of the web UI, as well as pu
99
- This must be added under `lib_deps` in your `platformio.ini` (or `platformio_override.ini`).
1010
- Data is published over MQTT - make sure you've enabled the MQTT sync interface.
1111

12-
## Compiliation
12+
## Compilation
1313

1414
To enable, compile with `USERMOD_BH1750` defined (e.g. in `platformio_override.ini`)
1515
```ini

usermods/BH1750_v2/usermod_bh1750.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define USERMOD_BH1750_FIRST_MEASUREMENT_AT 10000
2929
#endif
3030

31-
// only report if differance grater than offset value
31+
// only report if difference grater than offset value
3232
#ifndef USERMOD_BH1750_OFFSET_VALUE
3333
#define USERMOD_BH1750_OFFSET_VALUE 2 // WLEDMM this makes more sense
3434
#endif

usermods/BME280_v2/usermod_bme280.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UsermodBME280 : public Usermod
3232

3333
// set the default pins based on the architecture, these get overridden by Usermod menu settings
3434
#ifdef ESP8266
35-
//uint8_t RST_PIN = 16; // Uncoment for Heltec WiFi-Kit-8
35+
//uint8_t RST_PIN = 16; // Un-comment for Heltec WiFi-Kit-8
3636
#endif
3737
int8_t ioPin[2] = {i2c_scl, i2c_sda}; // I2C pins: SCL, SDA...defaults to Arch hardware pins but overridden at setup()
3838
bool initDone = false;
@@ -80,7 +80,7 @@ class UsermodBME280 : public Usermod
8080
static const char _name[];
8181
static const char _enabled[];
8282

83-
// Read the BME280/BMP280 Sensor (which one runs depends on whether Celsius or Farenheit being set in Usermod Menu)
83+
// Read the BME280/BMP280 Sensor (which one runs depends on whether Celsius or Fahrenheit being set in Usermod Menu)
8484
void UpdateBME280Data(int SensorType)
8585
{
8686
float _temperature, _humidity, _pressure;

usermods/Battery/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you have an ESP32 board, connect the positive side of the battery to ADC1 (GP
1919
- 💯 Displays current battery voltage
2020
- 🚥 Displays battery level
2121
- 🚫 Auto-off with configurable Threshold
22-
- 🚨 Low power indicator with many configuration posibilities
22+
- 🚨 Low power indicator with many configuration possibilities
2323

2424
## 🎈 Installation
2525

@@ -41,7 +41,7 @@ define `USERMOD_BATTERY` in `wled00/my_config.h`
4141
| `USERMOD_BATTERY_MEASUREMENT_INTERVAL` | ms | battery check interval. defaults to 30 seconds |
4242
| `USERMOD_BATTERY_MIN_VOLTAGE` | v | minimum battery voltage. default is 2.6 (18650 battery standard) |
4343
| `USERMOD_BATTERY_MAX_VOLTAGE` | v | maximum battery voltage. default is 4.2 (18650 battery standard) |
44-
| `USERMOD_BATTERY_TOTAL_CAPACITY` | mAh | the capacity of all cells in parralel sumed up |
44+
| `USERMOD_BATTERY_TOTAL_CAPACITY` | mAh | the capacity of all cells in parallel summed up |
4545
| `USERMOD_BATTERY_CALIBRATION` | | offset / calibration number, fine tune the measured voltage by the microcontroller |
4646
| Auto-Off | --- | --- |
4747
| `USERMOD_BATTERY_AUTO_OFF_ENABLED` | true/false | enables auto-off |

usermods/DHT/usermod_dht.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#endif
5050

5151
// how many seconds after boot to take first measurement, 90 seconds
52-
// 90 gives enough time to OTA update firmware if this crashses
52+
// 90 gives enough time to OTA update firmware if this crashes
5353
#ifndef USERMOD_DHT_FIRST_MEASUREMENT_AT
5454
#define USERMOD_DHT_FIRST_MEASUREMENT_AT 90000
5555
#endif

usermods/EXAMPLE_v2/usermod_v2_example.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MyExampleUsermod : public Usermod {
5858
long testLong;
5959
int8_t testPins[2];
6060

61-
// any private methods should go here (non-inline methosd should be defined out of class)
61+
// any private methods should go here (non-inline method should be defined out of class)
6262
void publishMqtt(const char* state, bool retain = false); // example for publishing MQTT message
6363

6464

usermods/Enclosure_with_OLED_temp_ESP07/usermod.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ OneWire oneWire(13);
1515
DallasTemperature sensor(&oneWire);
1616
long temptimer = millis();
1717
long lastMeasure = 0;
18-
#define Celsius // Show temperature mesaurement in Celcius otherwise is in Fahrenheit
18+
#define Celsius // Show temperature measurement in Celsius otherwise is in Fahrenheit
1919

2020
// If display does not work or looks corrupted check the
2121
// constructor reference:
2222
// https://github.com/olikraus/u8g2/wiki/u8x8setupcpp
2323
// or check the gallery:
2424
// https://github.com/olikraus/u8g2/wiki/gallery
25-
// --> First choise of cheap I2C OLED 128X32 0.91"
25+
// --> First choice of cheap I2C OLED 128X32 0.91"
2626
U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
27-
// --> Second choise of cheap I2C OLED 128X64 0.96" or 1.3"
27+
// --> Second choice of cheap I2C OLED 128X64 0.96" or 1.3"
2828
//U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
2929
// gets called once at boot. Do all initialization that doesn't depend on
3030
// network here
3131
void userSetup() {
3232
sensor.begin(); //Start Dallas temperature sensor
3333
u8x8.begin();
34-
//u8x8.setFlipMode(1); //Uncoment if using WLED Wemos shield
34+
//u8x8.setFlipMode(1); //Un-comment if using WLED Wemos shield
3535
u8x8.setPowerSave(0);
3636
u8x8.setContrast(10); //Contrast setup will help to preserve OLED lifetime. In case OLED need to be brighter increase number up to 255
3737
u8x8.setFont(u8x8_font_chroma48medium8_r);
@@ -71,7 +71,7 @@ void userLoop() {
7171
if (mqtt != nullptr)
7272
{
7373
sensor.requestTemperatures();
74-
//Gets prefered temperature scale based on selection in definitions section
74+
//Gets preferred temperature scale based on selection in definitions section
7575
#ifdef Celsius
7676
float board_temperature = sensor.getTempCByIndex(0);
7777
#else
@@ -138,11 +138,11 @@ void userLoop() {
138138
// First row with Wifi name
139139
u8x8.setCursor(1, 0);
140140
u8x8.print(knownSsid.substring(0, u8x8.getCols() > 1 ? u8x8.getCols() - 2 : 0));
141-
// Print `~` char to indicate that SSID is longer, than owr dicplay
141+
// Print `~` char to indicate that SSID is longer than our display
142142
if (knownSsid.length() > u8x8.getCols())
143143
u8x8.print("~");
144144

145-
// Second row with IP or Psssword
145+
// Second row with IP or Password
146146
u8x8.setCursor(1, 1);
147147
// Print password in AP mode and if led is OFF.
148148
if (apActive && bri == 0)

usermods/Enclosure_with_OLED_temp_ESP07/usermod_bme280.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
void UpdateBME280Data();
1212

13-
#define Celsius // Show temperature mesaurement in Celcius otherwise is in Fahrenheit
13+
#define Celsius // Show temperature measurement in Celsius otherwise is in Fahrenheit
1414
BME280I2C bme; // Default : forced mode, standby time = 1000 ms
1515
// Oversampling = pressure ×1, temperature ×1, humidity ×1, filter off,
1616

@@ -20,14 +20,14 @@ uint8_t SDA_PIN = 21;
2020
#else //ESP8266 boards
2121
uint8_t SCL_PIN = 5;
2222
uint8_t SDA_PIN = 4;
23-
// uint8_t RST_PIN = 16; // Uncoment for Heltec WiFi-Kit-8
23+
// uint8_t RST_PIN = 16; // Un-comment for Heltec WiFi-Kit-8
2424
#endif
2525

2626
//The SCL and SDA pins are defined here.
2727
//ESP8266 Wemos D1 mini board use SCL=5 SDA=4 while ESP32 Wemos32 mini board use SCL=22 SDA=21
2828
#define U8X8_PIN_SCL SCL_PIN
2929
#define U8X8_PIN_SDA SDA_PIN
30-
//#define U8X8_PIN_RESET RST_PIN // Uncoment for Heltec WiFi-Kit-8
30+
//#define U8X8_PIN_RESET RST_PIN // Un-comment for Heltec WiFi-Kit-8
3131

3232
// If display does not work or looks corrupted check the
3333
// constructor reference:
@@ -36,9 +36,9 @@ uint8_t SDA_PIN = 4;
3636
// https://github.com/olikraus/u8g2/wiki/gallery
3737
// --> First choise of cheap I2C OLED 128X32 0.91"
3838
U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
39-
// --> Second choise of cheap I2C OLED 128X64 0.96" or 1.3"
39+
// --> Second choice of cheap I2C OLED 128X64 0.96" or 1.3"
4040
//U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(U8X8_PIN_NONE, U8X8_PIN_SCL, U8X8_PIN_SDA); // Pins are Reset, SCL, SDA
41-
// --> Third choise of Heltec WiFi-Kit-8 OLED 128X32 0.91"
41+
// --> Third choice of Heltec WiFi-Kit-8 OLED 128X32 0.91"
4242
//U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(U8X8_PIN_RESET, U8X8_PIN_SCL, U8X8_PIN_SDA); // Constructor for Heltec WiFi-Kit-8
4343
// gets called once at boot. Do all initialization that doesn't depend on network here
4444

@@ -181,11 +181,11 @@ void userLoop() {
181181
// First row with Wifi name
182182
u8x8.setCursor(1, 0);
183183
u8x8.print(knownSsid.substring(0, u8x8.getCols() > 1 ? u8x8.getCols() - 2 : 0));
184-
// Print `~` char to indicate that SSID is longer, than owr dicplay
184+
// Print `~` char to indicate that SSID is longer than our display
185185
if (knownSsid.length() > u8x8.getCols())
186186
u8x8.print("~");
187187

188-
// Second row with IP or Psssword
188+
// Second row with IP or Password
189189
u8x8.setCursor(1, 1);
190190
// Print password in AP mode and if led is OFF.
191191
if (apActive && bri == 0)

0 commit comments

Comments
 (0)