Skip to content

Commit f513cae

Browse files
committed
code spell checking - part1 (core)
I've found a code spellchecker, so this is what can be corrected easily. Changes are only affecting comments, readme and a few user-visible strings. So no functional impact expected.
1 parent cb95a7d commit f513cae

26 files changed

+70
-70
lines changed

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@
432432

433433
- Added application level pong websockets reply (#2139)
434434
- Use AsyncTCP 1.0.3 as it mitigates the flickering issue from 0.13.0-b2
435-
- Fixed transition manually updated in preset overriden by field value
435+
- Fixed transition manually updated in preset overridden by field value
436436

437437
#### Build 2108050
438438

@@ -961,7 +961,7 @@
961961

962962
#### Build 2011040
963963

964-
- Inversed Rain direction (fixes #1147)
964+
- Inverted Rain direction (fixes #1147)
965965

966966
#### Build 2011010
967967

@@ -1172,7 +1172,7 @@
11721172

11731173
- Added module info page to web UI
11741174
- Added realtime override functionality to web UI
1175-
- Added individial segment power and brightness to web UI
1175+
- Added individual segment power and brightness to web UI
11761176
- Added feature to one-click select single segment only by tapping segment name
11771177
- Removed palette jumping to default if color is changed
11781178

platformio.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ build_flags = ${common.build_flags_esp32}
654654
-D RLYPIN=19
655655
-D BTNPIN=17
656656
-D IRPIN=18
657-
-D UWLED_USE_MY_CONFIG
657+
-U WLED_USE_MY_CONFIG
658658
-D USERMOD_DALLASTEMPERATURE
659659
-D USERMOD_FOUR_LINE_DISPLAY
660660
-D TEMPERATURE_PIN=23

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A fast and feature-rich implementation of an ESP8266/ESP32 webserver to control
2626
- Up to 250 user presets to save and load colors/effects easily, supports cycling through them.
2727
- Presets can be used to automatically execute API calls
2828
- Nightlight function (gradually dims down)
29-
- Full OTA software updatability (HTTP + ArduinoOTA), password protectable
29+
- Full OTA software updateability (HTTP + ArduinoOTA), password protectable
3030
- Configurable analog clock (Cronixie, 7-segment and EleksTube IPS clock support via usermods)
3131
- Configurable Auto Brightness limit for safe operation
3232
- Filesystem-based config for easier backup of presets and settings

wled00/FX.cpp

+18-18
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ uint16_t triwave16(uint16_t in) {
5151
* Generates a tristate square wave w/ attac & decay
5252
* @param x input value 0-255
5353
* @param pulsewidth 0-127
54-
* @param attdec attac & decay, max. pulsewidth / 2
54+
* @param attdec attack & decay, max. pulsewidth / 2
5555
* @returns signed waveform value
5656
*/
5757
int8_t tristate_square8(uint8_t x, uint8_t pulsewidth, uint8_t attdec) {
@@ -1239,7 +1239,7 @@ uint16_t mode_fireworks() {
12391239
if (SEGMENT.is2D()) SEGMENT.setPixelColorXY(x, y, col);
12401240
else SEGMENT.setPixelColor(index, col);
12411241
SEGENV.aux1 = SEGENV.aux0; // old spark
1242-
SEGENV.aux0 = index; // remember where spark occured
1242+
SEGENV.aux0 = index; // remember where spark occurred
12431243
}
12441244
}
12451245
return FRAMETIME;
@@ -1272,8 +1272,8 @@ uint16_t mode_rain() {
12721272
SEGENV.aux0++; // increase spark index
12731273
SEGENV.aux1++;
12741274
}
1275-
if (SEGENV.aux0 == 0) SEGENV.aux0 = UINT16_MAX; // reset previous spark positiom
1276-
if (SEGENV.aux1 == 0) SEGENV.aux0 = UINT16_MAX; // reset previous spark positiom
1275+
if (SEGENV.aux0 == 0) SEGENV.aux0 = UINT16_MAX; // reset previous spark position
1276+
if (SEGENV.aux1 == 0) SEGENV.aux0 = UINT16_MAX; // reset previous spark position
12771277
if (SEGENV.aux0 >= width*height) SEGENV.aux0 = 0; // ignore
12781278
if (SEGENV.aux1 >= width*height) SEGENV.aux1 = 0;
12791279
}
@@ -3601,7 +3601,7 @@ uint16_t mode_tetrix(void) {
36013601
}
36023602

36033603
if (drop->step == 0) { // init brick
3604-
// speed calcualtion: a single brick should reach bottom of strip in X seconds
3604+
// speed calculation: a single brick should reach bottom of strip in X seconds
36053605
// if the speed is set to 1 this should take 5s and at 255 it should take 0.25s
36063606
// as this is dependant on SEGLEN it should be taken into account and the fact that effect runs every FRAMETIME s
36073607
int speed = SEGMENT.speed ? SEGMENT.speed : random8(1,255);
@@ -3684,7 +3684,7 @@ static const char _data_FX_MODE_PLASMA[] PROGMEM = "Plasma@Phase,!;!;!";
36843684

36853685
/*
36863686
* Percentage display
3687-
* Intesity values from 0-100 turn on the leds.
3687+
* Intensity values from 0-100 turn on the leds.
36883688
*/
36893689
uint16_t mode_percent(void) {
36903690

@@ -3737,7 +3737,7 @@ static const char _data_FX_MODE_PERCENT[] PROGMEM = "Percent@,% of fill,,,,One c
37373737

37383738
/*
37393739
* Modulates the brightness similar to a heartbeat
3740-
* (unimplemented?) tries to draw an ECG aproximation on a 2D matrix
3740+
* (unimplemented?) tries to draw an ECG approximation on a 2D matrix
37413741
*/
37423742
uint16_t mode_heartbeat(void) {
37433743
uint8_t bpm = 40 + (SEGMENT.speed >> 3);
@@ -4415,7 +4415,7 @@ uint16_t mode_tv_simulator(void) {
44154415
// how much time is elapsed ?
44164416
tvSimulator->elapsed = millis() - tvSimulator->startTime;
44174417

4418-
// fade from prev volor to next color
4418+
// fade from prev color to next color
44194419
if (tvSimulator->elapsed < tvSimulator->fadeTime) {
44204420
r = map(tvSimulator->elapsed, 0, tvSimulator->fadeTime, tvSimulator->pr, nr);
44214421
g = map(tvSimulator->elapsed, 0, tvSimulator->fadeTime, tvSimulator->pg, ng);
@@ -6283,7 +6283,7 @@ uint16_t mode_gravcenter(void) { // Gravcenter. By Andrew Tuline.
62836283
SEGMENT.fade_out(251); // 30%
62846284

62856285
float segmentSampleAvg = volumeSmth * (float)SEGMENT.intensity / 255.0f;
6286-
segmentSampleAvg *= 0.125; // divide by 8, to compensate for later "sensitivty" upscaling
6286+
segmentSampleAvg *= 0.125; // divide by 8, to compensate for later "sensitivity" upscaling
62876287

62886288
float mySampleAvg = mapf(segmentSampleAvg*2.0, 0, 32, 0, (float)SEGLEN/2.0f); // map to pixels available in current segment
62896289
uint16_t tempsamp = constrain(mySampleAvg, 0, SEGLEN/2); // Keep the sample from overflowing.
@@ -6335,7 +6335,7 @@ uint16_t mode_gravcentric(void) { // Gravcentric. By Andrew
63356335
SEGMENT.fade_out(253); // 50%
63366336

63376337
float segmentSampleAvg = volumeSmth * (float)SEGMENT.intensity / 255.0f;
6338-
segmentSampleAvg *= 0.125f; // divide by 8, to compensate for later "sensitivty" upscaling
6338+
segmentSampleAvg *= 0.125f; // divide by 8, to compensate for later "sensitivity" upscaling
63396339

63406340
float mySampleAvg = mapf(segmentSampleAvg*2.0, 0.0f, 32.0f, 0.0f, (float)SEGLEN/2.0f); // map to pixels availeable in current segment
63416341
int tempsamp = constrain(mySampleAvg, 0, SEGLEN/2); // Keep the sample from overflowing.
@@ -6384,7 +6384,7 @@ uint16_t mode_gravimeter(void) { // Gravmeter. By Andrew Tuline.
63846384
SEGMENT.fade_out(249); // 25%
63856385

63866386
float segmentSampleAvg = volumeSmth * (float)SEGMENT.intensity / 255.0;
6387-
segmentSampleAvg *= 0.25; // divide by 4, to compensate for later "sensitivty" upscaling
6387+
segmentSampleAvg *= 0.25; // divide by 4, to compensate for later "sensitivity" upscaling
63886388

63896389
float mySampleAvg = mapf(segmentSampleAvg*2.0, 0, 64, 0, (SEGLEN-1)); // map to pixels availeable in current segment
63906390
int tempsamp = constrain(mySampleAvg,0,SEGLEN-1); // Keep the sample from overflowing.
@@ -6484,7 +6484,7 @@ uint16_t mode_midnoise(void) { // Midnoise. By Andrew Tuline.
64846484
SEGMENT.fade_out(SEGMENT.speed);
64856485

64866486
float tmpSound2 = volumeSmth * (float)SEGMENT.intensity / 256.0; // Too sensitive.
6487-
tmpSound2 *= (float)SEGMENT.intensity / 128.0; // Reduce sensitity/length.
6487+
tmpSound2 *= (float)SEGMENT.intensity / 128.0; // Reduce sensitivity/length.
64886488

64896489
int maxLen = mapf(tmpSound2, 0, 127, 0, SEGLEN/2);
64906490
if (maxLen >SEGLEN/2) maxLen = SEGLEN/2;
@@ -6895,7 +6895,7 @@ uint16_t mode_freqmatrix(void) { // Freqmatrix. By Andreas Plesch
68956895

68966896
if (FFT_MajorPeak > MAX_FREQUENCY) FFT_MajorPeak = 1;
68976897
// MajorPeak holds the freq. value which is most abundant in the last sample.
6898-
// With our sampling rate of 10240Hz we have a usable freq range from roughtly 80Hz to 10240/2 Hz
6898+
// With our sampling rate of 10240Hz we have a usable freq range from roughly 80Hz to 10240/2 Hz
68996899
// we will treat everything with less than 65Hz as 0
69006900

69016901
if (FFT_MajorPeak < 80) {
@@ -6916,7 +6916,7 @@ uint16_t mode_freqmatrix(void) { // Freqmatrix. By Andreas Plesch
69166916

69176917
return FRAMETIME;
69186918
} // mode_freqmatrix()
6919-
static const char _data_FX_MODE_FREQMATRIX[] PROGMEM = "Freqmatrix@Speed,Sound effect,Low bin,High bin,Sensivity;;;1f;m12=3,si=0"; // Corner, Beatsin
6919+
static const char _data_FX_MODE_FREQMATRIX[] PROGMEM = "Freqmatrix@Speed,Sound effect,Low bin,High bin,Sensitivity;;;1f;m12=3,si=0"; // Corner, Beatsin
69206920

69216921

69226922
//////////////////////
@@ -7000,7 +7000,7 @@ uint16_t mode_freqwave(void) { // Freqwave. By Andreas Pleschun
70007000

70017001
if (FFT_MajorPeak > MAX_FREQUENCY) FFT_MajorPeak = 1.0f;
70027002
// MajorPeak holds the freq. value which is most abundant in the last sample.
7003-
// With our sampling rate of 10240Hz we have a usable freq range from roughtly 80Hz to 10240/2 Hz
7003+
// With our sampling rate of 10240Hz we have a usable freq range from roughly 80Hz to 10240/2 Hz
70047004
// we will treat everything with less than 65Hz as 0
70057005

70067006
if (FFT_MajorPeak < 80) {
@@ -7047,7 +7047,7 @@ uint16_t mode_gravfreq(void) { // Gravfreq. By Andrew Tuline.
70477047
SEGMENT.fade_out(250);
70487048

70497049
float segmentSampleAvg = volumeSmth * (float)SEGMENT.intensity / 255.0f;
7050-
segmentSampleAvg *= 0.125f; // divide by 8, to compensate for later "sensitivty" upscaling
7050+
segmentSampleAvg *= 0.125f; // divide by 8, to compensate for later "sensitivity" upscaling
70517051

70527052
float mySampleAvg = mapf(segmentSampleAvg*2.0f, 0,32, 0, (float)SEGLEN/2.0f); // map to pixels availeable in current segment
70537053
int tempsamp = constrain(mySampleAvg,0,SEGLEN/2); // Keep the sample from overflowing.
@@ -7075,7 +7075,7 @@ uint16_t mode_gravfreq(void) { // Gravfreq. By Andrew Tuline.
70757075

70767076
return FRAMETIME;
70777077
} // mode_gravfreq()
7078-
static const char _data_FX_MODE_GRAVFREQ[] PROGMEM = "Gravfreq@Rate of fall,Sensivity;!,!;!;1f;ix=128,m12=0,si=0"; // Pixels, Beatsin
7078+
static const char _data_FX_MODE_GRAVFREQ[] PROGMEM = "Gravfreq@Rate of fall,Sensitivity;!,!;!;1f;ix=128,m12=0,si=0"; // Pixels, Beatsin
70797079

70807080

70817081
//////////////////////
@@ -7667,7 +7667,7 @@ static const char _data_FX_MODE_2DWAVINGCELL[] PROGMEM = "Waving Cell@!,,Amplitu
76677667
static const char _data_RESERVED[] PROGMEM = "RSVD";
76687668

76697669
// add (or replace reserved) effect mode and data into vector
7670-
// use id==255 to find unallocatd gaps (with "Reserved" data string)
7670+
// use id==255 to find unallocated gaps (with "Reserved" data string)
76717671
// if vector size() is smaller than id (single) data is appended at the end (regardless of id)
76727672
void WS2812FX::addEffect(uint8_t id, mode_ptr mode_fn, const char *mode_name) {
76737673
if (id == 255) { // find empty slot

wled00/FX.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ typedef struct Segment {
432432
uint8_t _briT; // temporary brightness
433433
uint8_t _cctT; // temporary CCT
434434
CRGBPalette16 _palT; // temporary palette
435-
uint8_t _prevPaletteBlends; // number of previous palette blends (there are max 255 belnds possible)
435+
uint8_t _prevPaletteBlends; // number of previous palette blends (there are max 255 blends possible)
436436
unsigned long _start; // must accommodate millis()
437437
uint16_t _dur;
438438
Transition(uint16_t dur=750)

wled00/FX_fcn.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ CRGBPalette16 &Segment::loadPalette(CRGBPalette16 &targetPalette, uint8_t pal) {
251251
CRGB sec = gamma32(colors[1]);
252252
CRGB ter = gamma32(colors[2]);
253253
targetPalette = CRGBPalette16(ter,sec,prim); break;}
254-
case 5: {//primary + secondary (+tert if not off), more distinct
254+
case 5: {//primary + secondary (+tertiary if not off), more distinct
255255
CRGB prim = gamma32(colors[0]);
256256
CRGB sec = gamma32(colors[1]);
257257
if (colors[2]) {
@@ -290,7 +290,7 @@ CRGBPalette16 &Segment::loadPalette(CRGBPalette16 &targetPalette, uint8_t pal) {
290290

291291
void Segment::startTransition(uint16_t dur) {
292292
if (dur == 0) {
293-
if (isInTransition()) _t->_dur = dur; // this will stop transition in next handleTransisiton()
293+
if (isInTransition()) _t->_dur = dur; // this will stop transition in next handleTransition()
294294
return;
295295
}
296296
if (isInTransition()) return; // already in transition no need to store anything
@@ -1339,7 +1339,7 @@ uint8_t WS2812FX::estimateCurrentAndLimitBri() {
13391339
}
13401340

13411341
void WS2812FX::show(void) {
1342-
// avoid race condition, caputre _callback value
1342+
// avoid race condition, capture _callback value
13431343
show_callback callback = _callback;
13441344
if (callback) callback();
13451345

@@ -1374,7 +1374,7 @@ bool WS2812FX::isUpdating() {
13741374

13751375
/**
13761376
* Returns the refresh rate of the LED strip. Useful for finding out whether a given setup is fast enough.
1377-
* Only updates on show() or is set to 0 fps if last show is more than 2 secs ago, so accurary varies
1377+
* Only updates on show() or is set to 0 fps if last show is more than 2 secs ago, so accuracy varies
13781378
*/
13791379
uint16_t WS2812FX::getFps() {
13801380
if (millis() - _lastShow > 2000) return 0;

wled00/bus_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void ColorOrderMap::add(uint16_t start, uint16_t len, uint8_t colorOrder) {
6464

6565
uint8_t IRAM_ATTR ColorOrderMap::getPixelColorOrder(uint16_t pix, uint8_t defaultColorOrder) const {
6666
if (_count == 0) return defaultColorOrder;
67-
// upper nibble containd W swap information
67+
// upper nibble contains W swap information
6868
uint8_t swapW = defaultColorOrder >> 4;
6969
for (uint8_t i = 0; i < _count; i++) {
7070
if (pix >= _mappings[i].start && pix < (_mappings[i].start + _mappings[i].len)) {

wled00/bus_manager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class BusDigital : public Bus {
229229
uint8_t* chan = (uint8_t*) &c;
230230
for (uint_fast8_t i=0; i<4; i++) {
231231
uint_fast16_t val = chan[i];
232-
chan[i] = ((val << 8) + restoreBri) / (restoreBri + 1); //adding _bri slighly improves recovery / stops degradation on re-scale
232+
chan[i] = ((val << 8) + restoreBri) / (restoreBri + 1); //adding _bri slightly improves recovery / stops degradation on re-scale
233233
}
234234
}
235235
return c;

wled00/bus_wrapper.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@
6969
#define I_32_RN_NEO_3 21
7070
#define I_32_I0_NEO_3 22
7171
#define I_32_I1_NEO_3 23
72-
#define I_32_BB_NEO_3 24 // bitbangging on ESP32 not recommended
72+
#define I_32_BB_NEO_3 24 // bitbanging on ESP32 not recommended
7373
//RGBW
7474
#define I_32_RN_NEO_4 25
7575
#define I_32_I0_NEO_4 26
7676
#define I_32_I1_NEO_4 27
77-
#define I_32_BB_NEO_4 28 // bitbangging on ESP32 not recommended
77+
#define I_32_BB_NEO_4 28 // bitbanging on ESP32 not recommended
7878
//400Kbps
7979
#define I_32_RN_400_3 29
8080
#define I_32_I0_400_3 30
8181
#define I_32_I1_400_3 31
82-
#define I_32_BB_400_3 32 // bitbangging on ESP32 not recommended
82+
#define I_32_BB_400_3 32 // bitbanging on ESP32 not recommended
8383
//TM1814 (RGBW)
8484
#define I_32_RN_TM1_4 33
8585
#define I_32_I0_TM1_4 34
@@ -379,7 +379,7 @@ class PolyBus {
379379
case I_32_I1_UCS_4: (static_cast<B_32_I1_UCS_4*>(busPtr))->Begin(); break;
380380
#endif
381381
// case I_32_BB_UCS_4: (static_cast<B_32_BB_UCS_4*>(busPtr))->Begin(); break;
382-
// ESP32 can (and should, to avoid inadvertantly driving the chip select signal) specify the pins used for SPI, but only in begin()
382+
// ESP32 can (and should, to avoid inadvertently driving the chip select signal) specify the pins used for SPI, but only in begin()
383383
case I_HS_DOT_3: beginDotStar<B_HS_DOT_3*>(busPtr, pins[1], -1, pins[0], -1, clock_kHz); break;
384384
case I_HS_LPD_3: beginDotStar<B_HS_LPD_3*>(busPtr, pins[1], -1, pins[0], -1, clock_kHz); break;
385385
case I_HS_LPO_3: beginDotStar<B_HS_LPO_3*>(busPtr, pins[1], -1, pins[0], -1, clock_kHz); break;

wled00/button.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void handleAnalog(uint8_t b)
171171
// remove noise & reduce frequency of UI updates
172172
if (abs(int(aRead) - int(oldRead[b])) <= POT_SENSITIVITY) return; // no significant change in reading
173173

174-
// Unomment the next lines if you still see flickering related to potentiometer
174+
// Un-Comment the next lines if you still see flickering related to potentiometer
175175
// This waits until strip finishes updating (why: strip was not updating at the start of handleButton() but may have started during analogRead()?)
176176
//unsigned long wait_started = millis();
177177
//while(strip.isUpdating() && (millis() - wait_started < STRIP_WAIT_TIME)) {
@@ -375,7 +375,7 @@ void handleIO()
375375
if (!offMode) {
376376
#ifdef ESP8266
377377
// turn off built-in LED if strip is turned off
378-
// this will break digital bus so will need to be reinitialised on On
378+
// this will break digital bus so will need to be re-initialised on On
379379
PinOwner ledPinOwner = pinManager.getPinOwner(LED_BUILTIN);
380380
if (!strip.isOffRefreshRequired() && (ledPinOwner == PinOwner::None || ledPinOwner == PinOwner::BusDigital)) {
381381
pinMode(LED_BUILTIN, OUTPUT);

wled00/cfg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
308308
PinManagerPinType i2c[2] = { { i2c_sda, true }, { i2c_scl, true } };
309309
if (i2c_scl >= 0 && i2c_sda >= 0 && pinManager.allocateMultiplePins(i2c, 2, PinOwner::HW_I2C)) {
310310
#ifdef ESP32
311-
if (!Wire.setPins(i2c_sda, i2c_scl)) { i2c_scl = i2c_sda = -1; } // this will fail if Wire is initilised (Wire.begin() called prior)
311+
if (!Wire.setPins(i2c_sda, i2c_scl)) { i2c_scl = i2c_sda = -1; } // this will fail if Wire is initialised (Wire.begin() called prior)
312312
else Wire.begin();
313313
#else
314314
Wire.begin(i2c_sda, i2c_scl);

0 commit comments

Comments
 (0)