aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-16 15:08:55 +0100
committerGitHub <noreply@github.com>2021-10-16 15:08:55 +0100
commit39e85dd687b68540ee7a8bfeeb0ba4db365cf2c4 (patch)
treeaf2d55c63dabc2bd28ecc7a53fdf9cc9978157db /examples
parentfaccc17bbb10f95594a88f0a2b42d6cf89ebd0af (diff)
parent7ed06c1217b748edcd0a5c2bf5ff4722194c05e1 (diff)
Merge pull request #200 from mcauser/typos
Fix some typos
Diffstat (limited to 'examples')
-rw-r--r--examples/2_PatternPlasma/2_PatternPlasma.ino2
-rw-r--r--examples/3_FM6126Panel/FM6126A.md10
-rw-r--r--examples/3_FM6126Panel/README.md2
-rw-r--r--examples/AuroraDemo/Attractor.h2
-rw-r--r--examples/AuroraDemo/AuroraDemo.ino4
-rw-r--r--examples/AuroraDemo/Effects.h12
-rw-r--r--examples/AuroraDemo/PatternSpiral.h10
-rw-r--r--examples/AuroraDemo/PatternSwirl.h4
-rw-r--r--examples/AuroraDemo/Patterns.h4
-rw-r--r--examples/BitmapIcons/bmp2hex.py4
-rw-r--r--examples/BouncingSquares/BouncingSquares.ino2
-rw-r--r--examples/ChainedPanelsAuroraDemo/Attractor.h2
-rw-r--r--examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino4
-rw-r--r--examples/ChainedPanelsAuroraDemo/Effects.h12
-rw-r--r--examples/ChainedPanelsAuroraDemo/PatternSpiral.h10
-rw-r--r--examples/ChainedPanelsAuroraDemo/PatternSwirl.h4
-rw-r--r--examples/ChainedPanelsAuroraDemo/Patterns.h4
-rw-r--r--examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h4
-rw-r--r--examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino2
-rw-r--r--examples/One_Quarter_1_4_ScanPanel/OneQuarterScanMatrixPanel.h22
-rw-r--r--examples/One_Quarter_1_4_ScanPanel/One_Quarter_1_4_ScanPanel.ino2
-rw-r--r--examples/One_Quarter_1_4_ScanPanel/README.md2
-rw-r--r--examples/PIO_TestPatterns/README.md2
-rw-r--r--examples/PIO_TestPatterns/src/main.cpp4
24 files changed, 65 insertions, 65 deletions
diff --git a/examples/2_PatternPlasma/2_PatternPlasma.ino b/examples/2_PatternPlasma/2_PatternPlasma.ino
index a1c4a23..65f85b9 100644
--- a/examples/2_PatternPlasma/2_PatternPlasma.ino
+++ b/examples/2_PatternPlasma/2_PatternPlasma.ino
@@ -99,7 +99,7 @@ void setup() {
// those are the defaults
mxconfig.mx_width = 64; // physical width of a single matrix panel module (in pixels, usually it is always 64 ;) )
- mxconfig.mx_height = 32; // physical height of a single matrix panel module (in pixels, usually amost always it is either 32 or 64)
+ mxconfig.mx_height = 32; // physical height of a single matrix panel module (in pixels, usually almost always it is either 32 or 64)
mxconfig.chain_length = 1; // number of chained panels regardless of the topology, default 1 - a single matrix module
mxconfig.gpio.r1 = R1; // pin mappings
mxconfig.gpio.g1 = G1;
diff --git a/examples/3_FM6126Panel/FM6126A.md b/examples/3_FM6126Panel/FM6126A.md
index bfab4a5..1641c16 100644
--- a/examples/3_FM6126Panel/FM6126A.md
+++ b/examples/3_FM6126Panel/FM6126A.md
@@ -8,20 +8,20 @@ An excellent insight could be found here https://github.com/hzeller/rpi-rgb-led-
So there are two regs in this chip - **REG1** and **REG2**,
-one could be written with 12 clock pusles (and usually called reg12, dunno why :))
+one could be written with 12 clock pulses (and usually called reg12, dunno why :))
the other one could be written with 13 clock pulses (and usually called reg13, dunno why :))
-I've done some measurmens on power consumption while toggling bits of **REG1** and it looks that it could provide a fine grained brighness control over the entire matrix with no need for bitbanging over RGB or EO pins.
-There are 6 bits (6 to 11) giving an increased brighness (compared to all-zeroes) and 4 bits (2-5) giving decreased brighness!!!
+I've done some measurements on power consumption while toggling bits of **REG1** and it looks that it could provide a fine grained brightness control over the entire matrix with no need for bitbanging over RGB or EO pins.
+There are 6 bits (6 to 11) giving an increased brightness (compared to all-zeroes) and 4 bits (2-5) giving decreased brightness!!!
Still unclear if FM6112A brightness control is internally PWMed or current limited, might require some poking with oscilloscope.
So it seems that the most bright (and hungry for power) value is bool REG1[16] = {0,0,0,0,0, 1,1,1,1,1,1, 0,0,0,0,0}; and not {0,1,1,1,1, 1,1,1,1,1,1, 1,1,1,1,1} as it is usually used.
I'm not sure about bit 1 - it is either not used or I was unable to measure it's influence to brightness/power.
-Giving at least 10 bits of hardware brightness control opens pretty nice options for offloading and simplifiyng matrix output. Should dig into this more deeper.
+Giving at least 10 bits of hardware brightness control opens pretty nice options for offloading and simplifying matrix output. Should dig into this more deeper.
-Here are some of the measurments I've took for 2 64x64 panels filled with white color - reg value and corresponding current drain in amps.
+Here are some of the measurements I've took for 2 64x64 panels filled with white color - reg value and corresponding current drain in amps.
|REG1 |bit value|Current, amps |
diff --git a/examples/3_FM6126Panel/README.md b/examples/3_FM6126Panel/README.md
index 4683446..65019e6 100644
--- a/examples/3_FM6126Panel/README.md
+++ b/examples/3_FM6126Panel/README.md
@@ -1,3 +1,3 @@
## FM6126 based LED Matrix Panel Reset ##
-FM6216 panels require a special reset sequence before they can be used, check your panel chipset if you have issuees. Refer to this example.
+FM6216 panels require a special reset sequence before they can be used, check your panel chipset if you have issues. Refer to this example.
diff --git a/examples/AuroraDemo/Attractor.h b/examples/AuroraDemo/Attractor.h
index 8f5ba2f..668ba53 100644
--- a/examples/AuroraDemo/Attractor.h
+++ b/examples/AuroraDemo/Attractor.h
@@ -43,7 +43,7 @@ public:
float d = force.mag(); // Distance between objects
d = constrain(d, 5.0, 32.0); // Limiting the distance to eliminate "extreme" results for very close or very far objects
force.normalize(); // Normalize vector (distance doesn't matter here, we just want this vector for direction)
- float strength = (G * mass * m.mass) / (d * d); // Calculate gravitional force magnitude
+ float strength = (G * mass * m.mass) / (d * d); // Calculate gravitational force magnitude
force *= strength; // Get force vector --> magnitude * direction
return force;
}
diff --git a/examples/AuroraDemo/AuroraDemo.ino b/examples/AuroraDemo/AuroraDemo.ino
index 629f9be..14b61be 100644
--- a/examples/AuroraDemo/AuroraDemo.ino
+++ b/examples/AuroraDemo/AuroraDemo.ino
@@ -64,8 +64,8 @@ Effects effects;
Patterns patterns;
/* -------------------------- Some variables -------------------------- */
-unsigned long fps = 0, fps_timer; // fps (this is NOT a matix refresh rate!)
-unsigned int default_fps = 30, pattern_fps = 30; // default fps limit (this is not a matix refresh conuter!)
+unsigned long fps = 0, fps_timer; // fps (this is NOT a matrix refresh rate!)
+unsigned int default_fps = 30, pattern_fps = 30; // default fps limit (this is not a matrix refresh counter!)
unsigned long ms_animation_max_duration = 20000; // 20 seconds
unsigned long last_frame=0, ms_previous=0;
diff --git a/examples/AuroraDemo/Effects.h b/examples/AuroraDemo/Effects.h
index c219758..1b50329 100644
--- a/examples/AuroraDemo/Effects.h
+++ b/examples/AuroraDemo/Effects.h
@@ -48,7 +48,7 @@ uint16_t XY16( uint16_t x, uint16_t y);
/* Convert x,y co-ordinate to flat array index.
* x and y positions start from 0, so must not be >= 'real' panel width or height
* (i.e. 64 pixels or 32 pixels.). Max value: MATRIX_WIDTH-1 etc.
- * Ugh... uint8_t - really??? this weak method can't cope with 256+ pixel matrixes :(
+ * Ugh... uint8_t - really??? this weak method can't cope with 256+ pixel matrices :(
*/
uint16_t XY( uint8_t x, uint8_t y)
{
@@ -56,7 +56,7 @@ uint16_t XY( uint8_t x, uint8_t y)
}
/**
- * The one for 256+ matrixes
+ * The one for 256+ matrices
* otherwise this:
* for (uint8_t i = 0; i < MATRIX_WIDTH; i++) {}
* turns into an infinite loop
@@ -66,7 +66,7 @@ uint16_t XY16( uint16_t x, uint16_t y)
if( x >= MATRIX_WIDTH) return 0;
if( y >= MATRIX_HEIGHT) return 0;
- return (y * MATRIX_WIDTH) + x + 1; // everything offset by one to capute out of bounds stuff - never displayed by ShowFrame()
+ return (y * MATRIX_WIDTH) + x + 1; // everything offset by one to compute out of bounds stuff - never displayed by ShowFrame()
}
@@ -116,7 +116,7 @@ public:
//CRGB leds2[NUM_LEDS]; // Faptastic: getting rid of this and any dependant effects or algos. to save memory 24*64*32 bytes of ram (50k).
Effects(){
- // we do dynamic allocation for leds buffer, otherwise esp32 toolchain can't link static arrays of such a big size for 256+ matrixes
+ // we do dynamic allocation for leds buffer, otherwise esp32 toolchain can't link static arrays of such a big size for 256+ matrices
leds = (CRGB *)malloc(NUM_LEDS * sizeof(CRGB));
// allocate mem for noise effect
@@ -494,7 +494,7 @@ public:
leds[XY16(i, y - d)].nscale8(dimm);
}
for (int i = y - d; i <= y + d; i++) {
- leds[XY16(x + d, i)] += leds[XY16(x + d, i + 1)]; // right colum up
+ leds[XY16(x + d, i)] += leds[XY16(x + d, i + 1)]; // right column up
leds[XY16(x + d, i)].nscale8(dimm);
}
for (int i = x + d; i >= x - d; i--) {
@@ -502,7 +502,7 @@ public:
leds[XY16(i, y + d)].nscale8(dimm);
}
for (int i = y + d; i >= y - d; i--) {
- leds[XY16(x - d, i)] += leds[XY16(x - d, i - 1)]; // left colum down
+ leds[XY16(x - d, i)] += leds[XY16(x - d, i - 1)]; // left column down
leds[XY16(x - d, i)].nscale8(dimm);
}
}
diff --git a/examples/AuroraDemo/PatternSpiral.h b/examples/AuroraDemo/PatternSpiral.h
index 4971ca2..b8e6f07 100644
--- a/examples/AuroraDemo/PatternSpiral.h
+++ b/examples/AuroraDemo/PatternSpiral.h
@@ -28,7 +28,7 @@
class PatternSpiral : public Drawable {
private:
- // Timer stuff (Oszillators)
+ // Timer stuff (Oscillators)
struct timer {
unsigned long takt;
unsigned long lastMillis;
@@ -68,7 +68,7 @@ public:
// set all counting directions positive for the beginning
for (int i = 0; i < timers; i++) multiTimer[i].delta = 1;
- // set range (up/down), speed (takt=ms between steps) and starting point of all oszillators
+ // set range (up/down), speed (takt=ms between steps) and starting point of all oscillators
unsigned long now = millis();
@@ -104,10 +104,10 @@ public:
}
unsigned int drawFrame() {
- // manage the Oszillators
+ // manage the Oscillators
UpdateTimers();
- // draw just a line defined by 5 oszillators
+ // draw just a line defined by 5 oscillators
effects.BresenhamLine(
multiTimer[3].count, // x1
multiTimer[4].count, // y1
@@ -116,7 +116,7 @@ public:
multiTimer[2].count); // color
// manipulate the screen buffer
- // with fixed parameters (could be oszillators too)
+ // with fixed parameters (could be oscillators too)
// Params: center x, y, radius, scale color down
// --> NOTE: Affects always a SQUARE with an odd length
// effects.SpiralStream(15, 15, 10, 128);
diff --git a/examples/AuroraDemo/PatternSwirl.h b/examples/AuroraDemo/PatternSwirl.h
index 74e5305..a81ed61 100644
--- a/examples/AuroraDemo/PatternSwirl.h
+++ b/examples/AuroraDemo/PatternSwirl.h
@@ -63,9 +63,9 @@ class PatternSwirl : public Drawable {
// The color of each point shifts over time, each at a different speed.
uint16_t ms = millis();
effects.leds[XY(i, j)] += effects.ColorFromCurrentPalette(ms / 11);
- //effects.leds[XY(j, i)] += effects.ColorFromCurrentPalette(ms / 13); // this doesn't work for non-square matrixes
+ //effects.leds[XY(j, i)] += effects.ColorFromCurrentPalette(ms / 13); // this doesn't work for non-square matrices
effects.leds[XY(ni, nj)] += effects.ColorFromCurrentPalette(ms / 17);
- //effects.leds[XY(nj, ni)] += effects.ColorFromCurrentPalette(ms / 29); // this doesn't work for non-square matrixes
+ //effects.leds[XY(nj, ni)] += effects.ColorFromCurrentPalette(ms / 29); // this doesn't work for non-square matrices
effects.leds[XY(i, nj)] += effects.ColorFromCurrentPalette(ms / 37);
effects.leds[XY(ni, j)] += effects.ColorFromCurrentPalette(ms / 41);
diff --git a/examples/AuroraDemo/Patterns.h b/examples/AuroraDemo/Patterns.h
index 370a4c2..100a545 100644
--- a/examples/AuroraDemo/Patterns.h
+++ b/examples/AuroraDemo/Patterns.h
@@ -137,13 +137,13 @@ class Patterns : public Playlist {
// &incrementalDrift2, // 13 fail
&munch, // 14 ok
&electricMandala, // 15 ok
- // &spin, // 16 ok but repeditivev
+ // &spin, // 16 ok but repetitive
&simplexNoise, // 17 - cool!
// &wave, // 18 ok (can't work with 256+ matrix due to uint8_t vars)
// &rainbowFlag, //20 // fail
&attract, // 21 ok
&swirl, // 22
- // &bounce, // boncing line crap
+ // &bounce, // bouncing line crap
&flock, // works
&infinity, // works
&plasma, // works
diff --git a/examples/BitmapIcons/bmp2hex.py b/examples/BitmapIcons/bmp2hex.py
index f30ce24..49e1c65 100644
--- a/examples/BitmapIcons/bmp2hex.py
+++ b/examples/BitmapIcons/bmp2hex.py
@@ -146,7 +146,7 @@ def bmp2hex(infile, tablewidth, sizebytes, invert, raw, named, double, xbm):
# Convert tablewidth to characters from hex bytes
tablewidth = int(tablewidth) * 6
- # Initilize output buffer
+ # Initialize output buffer
outstring = ''
# Open File
@@ -165,7 +165,7 @@ def bmp2hex(infile, tablewidth, sizebytes, invert, raw, named, double, xbm):
if ((values[0] != 0x42) or (values[1] != 0x4D)):
sys.exit ("Error: Unsupported BMP format. Make sure your file is a Windows BMP.")
- # Calculate width, heigth
+ # Calculate width, height
dataOffset = getLONG(values, 10) # Offset to image data
pixelWidth = getLONG(values, 18) # Width of image
pixelHeight = getLONG(values, 22) # Height of image
diff --git a/examples/BouncingSquares/BouncingSquares.ino b/examples/BouncingSquares/BouncingSquares.ino
index 5ea09b1..6a01225 100644
--- a/examples/BouncingSquares/BouncingSquares.ino
+++ b/examples/BouncingSquares/BouncingSquares.ino
@@ -63,7 +63,7 @@ void loop()
for (int i = 0; i < numSquares; i++)
{
- // Draw rect and then calculatae
+ // Draw rect and then calculate
display->fillRect(Squares[i].xpos, Squares[i].ypos, Squares[i].square_size, Squares[i].square_size, Squares[i].colour);
if (Squares[i].square_size + Squares[i].xpos >= display->width()) {
diff --git a/examples/ChainedPanelsAuroraDemo/Attractor.h b/examples/ChainedPanelsAuroraDemo/Attractor.h
index 8f5ba2f..668ba53 100644
--- a/examples/ChainedPanelsAuroraDemo/Attractor.h
+++ b/examples/ChainedPanelsAuroraDemo/Attractor.h
@@ -43,7 +43,7 @@ public:
float d = force.mag(); // Distance between objects
d = constrain(d, 5.0, 32.0); // Limiting the distance to eliminate "extreme" results for very close or very far objects
force.normalize(); // Normalize vector (distance doesn't matter here, we just want this vector for direction)
- float strength = (G * mass * m.mass) / (d * d); // Calculate gravitional force magnitude
+ float strength = (G * mass * m.mass) / (d * d); // Calculate gravitational force magnitude
force *= strength; // Get force vector --> magnitude * direction
return force;
}
diff --git a/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino b/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino
index 4d89944..957201f 100644
--- a/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino
+++ b/examples/ChainedPanelsAuroraDemo/ChainedPanelsAuroraDemo.ino
@@ -22,7 +22,7 @@
/* -------------------------- Display Config Initialisation -------------------- */
-// Assume we have four 64x32 panels daizy-chained and ESP32 attached to the bottom right corner
+// Assume we have four 64x32 panels daisy-chained and ESP32 attached to the bottom right corner
#define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module.
#define PANEL_RES_Y 32 // Number of pixels tall of each INDIVIDUAL panel module.
@@ -34,7 +34,7 @@
#define SERPENT false
#define TOPDOWN false
-// Virtual Panl dimensions - our combined panel would be a square 4x4 modules with a combined resolution of 128x128 pixels
+// Virtual Panel dimensions - our combined panel would be a square 4x4 modules with a combined resolution of 128x128 pixels
#define VPANEL_W PANEL_RES_X*NUM_COLS // Kosso: All Pattern files have had the MATRIX_WIDTH and MATRIX_HEIGHT replaced by these.
#define VPANEL_H PANEL_RES_Y*NUM_ROWS //
diff --git a/examples/ChainedPanelsAuroraDemo/Effects.h b/examples/ChainedPanelsAuroraDemo/Effects.h
index 9c1f623..3d4affb 100644
--- a/examples/ChainedPanelsAuroraDemo/Effects.h
+++ b/examples/ChainedPanelsAuroraDemo/Effects.h
@@ -48,7 +48,7 @@ uint16_t XY16( uint16_t x, uint16_t y);
/* Convert x,y co-ordinate to flat array index.
* x and y positions start from 0, so must not be >= 'real' panel width or height
* (i.e. 64 pixels or 32 pixels.). Max value: VPANEL_W-1 etc.
- * Ugh... uint8_t - really??? this weak method can't cope with 256+ pixel matrixes :(
+ * Ugh... uint8_t - really??? this weak method can't cope with 256+ pixel matrices :(
*/
uint16_t XY( uint8_t x, uint8_t y)
{
@@ -56,7 +56,7 @@ uint16_t XY( uint8_t x, uint8_t y)
}
/**
- * The one for 256+ matrixes
+ * The one for 256+ matrices
* otherwise this:
* for (uint8_t i = 0; i < VPANEL_W; i++) {}
* turns into an infinite loop
@@ -66,7 +66,7 @@ uint16_t XY16( uint16_t x, uint16_t y)
if( x >= VPANEL_W) return 0;
if( y >= VPANEL_H) return 0;
- return (y * VPANEL_W) + x + 1; // everything offset by one to capute out of bounds stuff - never displayed by ShowFrame()
+ return (y * VPANEL_W) + x + 1; // everything offset by one to compute out of bounds stuff - never displayed by ShowFrame()
}
@@ -114,7 +114,7 @@ public:
CRGB *leds;
Effects(){
- // we do dynamic allocation for leds buffer, otherwise esp32 toolchain can't link static arrays of such a big size for 256+ matrixes
+ // we do dynamic allocation for leds buffer, otherwise esp32 toolchain can't link static arrays of such a big size for 256+ matrices
leds = (CRGB *)malloc(NUM_LEDS * sizeof(CRGB));
// allocate mem for noise effect
@@ -491,7 +491,7 @@ public:
leds[XY16(i, y - d)].nscale8(dimm);
}
for (int i = y - d; i <= y + d; i++) {
- leds[XY16(x + d, i)] += leds[XY16(x + d, i + 1)]; // right colum up
+ leds[XY16(x + d, i)] += leds[XY16(x + d, i + 1)]; // right column up
leds[XY16(x + d, i)].nscale8(dimm);
}
for (int i = x + d; i >= x - d; i--) {
@@ -499,7 +499,7 @@ public:
leds[XY16(i, y + d)].nscale8(dimm);
}
for (int i = y + d; i >= y - d; i--) {
- leds[XY16(x - d, i)] += leds[XY16(x - d, i - 1)]; // left colum down
+ leds[XY16(x - d, i)] += leds[XY16(x - d, i - 1)]; // left column down
leds[XY16(x - d, i)].nscale8(dimm);
}
}
diff --git a/examples/ChainedPanelsAuroraDemo/PatternSpiral.h b/examples/ChainedPanelsAuroraDemo/PatternSpiral.h
index 23ce699..64ef15d 100644
--- a/examples/ChainedPanelsAuroraDemo/PatternSpiral.h
+++ b/examples/ChainedPanelsAuroraDemo/PatternSpiral.h
@@ -28,7 +28,7 @@
class PatternSpiral : public Drawable {
private:
- // Timer stuff (Oszillators)
+ // Timer stuff (Oscillators)
struct timer {
unsigned long takt;
unsigned long lastMillis;
@@ -68,7 +68,7 @@ public:
// set all counting directions positive for the beginning
for (int i = 0; i < timers; i++) multiTimer[i].delta = 1;
- // set range (up/down), speed (takt=ms between steps) and starting point of all oszillators
+ // set range (up/down), speed (takt=ms between steps) and starting point of all oscillators
unsigned long now = millis();
@@ -104,10 +104,10 @@ public:
}
unsigned int drawFrame() {
- // manage the Oszillators
+ // manage the Oscillators
UpdateTimers();
- // draw just a line defined by 5 oszillators
+ // draw just a line defined by 5 oscillators
effects.BresenhamLine(
multiTimer[3].count, // x1
multiTimer[4].count, // y1
@@ -116,7 +116,7 @@ public:
multiTimer[2].count); // color
// manipulate the screen buffer
- // with fixed parameters (could be oszillators too)
+ // with fixed parameters (could be oscillators too)
// Params: center x, y, radius, scale color down
// --> NOTE: Affects always a SQUARE with an odd length
// effects.SpiralStream(15, 15, 10, 128);
diff --git a/examples/ChainedPanelsAuroraDemo/PatternSwirl.h b/examples/ChainedPanelsAuroraDemo/PatternSwirl.h
index 3835ce1..49f3273 100644
--- a/examples/ChainedPanelsAuroraDemo/PatternSwirl.h
+++ b/examples/ChainedPanelsAuroraDemo/PatternSwirl.h
@@ -63,9 +63,9 @@ class PatternSwirl : public Drawable {
// The color of each point shifts over time, each at a different speed.
uint16_t ms = millis();
effects.leds[XY(i, j)] += effects.ColorFromCurrentPalette(ms / 11);
- //effects.leds[XY(j, i)] += effects.ColorFromCurrentPalette(ms / 13); // this doesn't work for non-square matrixes
+ //effects.leds[XY(j, i)] += effects.ColorFromCurrentPalette(ms / 13); // this doesn't work for non-square matrices
effects.leds[XY(ni, nj)] += effects.ColorFromCurrentPalette(ms / 17);
- //effects.leds[XY(nj, ni)] += effects.ColorFromCurrentPalette(ms / 29); // this doesn't work for non-square matrixes
+ //effects.leds[XY(nj, ni)] += effects.ColorFromCurrentPalette(ms / 29); // this doesn't work for non-square matrices
effects.leds[XY(i, nj)] += effects.ColorFromCurrentPalette(ms / 37);
effects.leds[XY(ni, j)] += effects.ColorFromCurrentPalette(ms / 41);
diff --git a/examples/ChainedPanelsAuroraDemo/Patterns.h b/examples/ChainedPanelsAuroraDemo/Patterns.h
index a4eb838..398d57b 100644
--- a/examples/ChainedPanelsAuroraDemo/Patterns.h
+++ b/examples/ChainedPanelsAuroraDemo/Patterns.h
@@ -135,13 +135,13 @@ class Patterns : public Playlist {
&incrementalDrift2, // 13 fail
&munch, // 14 ok
// &electricMandala, // 15 ok, but ugly (vortigont)
- // &spin, // 16 ok but repeditivev
+ // &spin, // 16 ok but repetitive
// &simplexNoise, // 17 - cool!
// &wave, // 18 ok (can't work with 256+ matrix due to uint8_t vars)
// &rainbowFlag, //20 // fail
&attract, // 21 ok
// &swirl, // 22 ok, but ugly (vortigont)
- // &bounce, // boncing line crap
+ // &bounce, // bouncing line crap
&flock, // works
&infinity, // works
&plasma, // works
diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
index ec3150f..091bf96 100644
--- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
+++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h
@@ -103,7 +103,7 @@ class OneEighthMatrixPanel
*/
inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) {
- coords.x = coords.y = -1; // By defalt use an invalid co-ordinates that will be rejected by updateMatrixDMABuffer
+ coords.x = coords.y = -1; // By default use an invalid co-ordinates that will be rejected by updateMatrixDMABuffer
// Check if virtual work co-ordinates are outside the virtual display resolution space. This does NOT check
// against the physical real-world DMA matrix resolution / setup configured, that is used to actually output
@@ -212,7 +212,7 @@ inline void OneEighthMatrixPanel::setRotate(bool rotate) {
if (rotate) { setRotation(1); } else { setRotation(0); }
}
-// need to recreate this one, as it wouldnt work to just map where it starts.
+// need to recreate this one, as it wouldn't work to just map where it starts.
inline void OneEighthMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int16_t icon_cols, int16_t icon_rows) {
}
diff --git a/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino b/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino
index e785cdd..f2def4e 100644
--- a/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino
+++ b/examples/One_Eighth_1_8_ScanPanel/One_Eighth_1_8_ScanPanel.ino
@@ -46,7 +46,7 @@
#define OE_PIN 25
#define CLK_PIN 22
- #include "OneEighthScanMatrixPanel.h" // Virtual Display to re-map co-ordinates such that they draw correctly on a32x16 1/4 Scan panel
+ #include "OneEighthScanMatrixPanel.h" // Virtual Display to re-map co-ordinates such that they draw correctly on a 32x16 1/4 Scan panel
// placeholder for the matrix object
MatrixPanel_I2S_DMA *dma_display = nullptr;
diff --git a/examples/One_Quarter_1_4_ScanPanel/OneQuarterScanMatrixPanel.h b/examples/One_Quarter_1_4_ScanPanel/OneQuarterScanMatrixPanel.h
index 2a0f0e7..885b937 100644
--- a/examples/One_Quarter_1_4_ScanPanel/OneQuarterScanMatrixPanel.h
+++ b/examples/One_Quarter_1_4_ScanPanel/OneQuarterScanMatrixPanel.h
@@ -74,7 +74,7 @@ class QuarterScanMatrixPanel : public Adafruit_GFX
return coords.y;
}
// int16_t getVirtualY(int16_t y) {return getCoords(0,y).y;}
- /** extende function to draw lines/rects/... **/
+ /** extended function to draw lines/rects/... **/
virtual uint8_t width() {return VP_WIDTH;};
virtual uint8_t height() {return VP_HEIGHT;};
@@ -87,8 +87,8 @@ class QuarterScanMatrixPanel : public Adafruit_GFX
virtual void drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size_x, uint8_t size_y);
virtual void scrollChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint16_t dir, uint16_t speed);
virtual void drawString(int16_t x, int16_t y, unsigned char* c, uint16_t color, uint16_t bg);
- virtual size_t write(unsigned char c); // write a character on current cursor postion
- virtual size_t write(const char *str); // write a character array (string) on curreont cursor postion
+ virtual size_t write(unsigned char c); // write a character on current cursor position
+ virtual size_t write(const char *str); // write a character array (string) on current cursor position
virtual void setTextWrap(bool w);
virtual void setCursor (int16_t x, int16_t y);
@@ -127,7 +127,7 @@ class QuarterScanMatrixPanel : public Adafruit_GFX
protected:
int16_t cursor_x, cursor_y; // Cursor position
- uint8_t size_x, size_y; // Font size Multiplikator default = 1 => 5x7 Font (5widht,7Height)
+ uint8_t size_x, size_y; // Font size Multiplier default = 1 => 5x7 Font (5width,7Height)
uint16_t textFGColor, textBGColor;
bool wrap ; // < If set, 'wrap' text at right edge of display
uint8_t dir ; // used for scrolling text direction
@@ -150,7 +150,7 @@ class QuarterScanMatrixPanel : public Adafruit_GFX
***************************************************************************************/
void QuarterScanMatrixPanel::scrollText(const char *str,uint16_t speed, uint16_t pixels = 0) {
// first we put all columns of every char inside str into a big array of lines
- // than we move through this arry and draw line per line and move this line
+ // than we move through this array and draw line per line and move this line
// one position to dir
const uint8_t xSize = 6;
uint16_t len = strlen(str);
@@ -308,7 +308,7 @@ inline void QuarterScanMatrixPanel::scrollChar(int16_t x, int16_t y, unsigned ch
fillRect(x,y,5,7,0);
x = lastX - s;
for (int8_t i = 0; i < 5; i++) {
- // first line is the firste vertical part of a character and 8bits long
+ // first line is the first vertical part of a character and 8bits long
// last bit is everytime 0
// we read 5 lines with 8 bit (5x7 char + 8bit with zeros)
// Example : char A (90deg cw)
@@ -320,7 +320,7 @@ inline void QuarterScanMatrixPanel::scrollChar(int16_t x, int16_t y, unsigned ch
uint8_t line = pgm_read_byte(&font[c * 5 + i]);
// shift from right to left bit per bit
// loop j = height of a character
- // loop through a colunm of currenc character
+ // loop through a column of current character
Serial.printf("i:%d ", i);
// ignore all pixels outside panel
if (x+i >= VP_WIDTH) continue;
@@ -360,7 +360,7 @@ inline void QuarterScanMatrixPanel::drawChar(int16_t x, int16_t y, unsigned char
{
//Serial.printf("unmapped : drawChar(%d, %d, %c) \n",x, y, c);
- // note: remapping to 16x32 coordinats is done inside drawPixel() or fillRect
+ // note: remapping to 16x32 coordinates is done inside drawPixel() or fillRect
if ((x >= VP_WIDTH) ||
(y >= VP_HEIGHT) ||
@@ -377,14 +377,14 @@ inline void QuarterScanMatrixPanel::drawChar(int16_t x, int16_t y, unsigned char
//Serial.printf("");
drawPixel(x + i, y + j, color);
else
- // remark: it's important to call function with orgininal coordinates for x/y
+ // remark: it's important to call function with original coordinates for x/y
fillRect(x + i * size_x, y + j * size_y, size_x, size_y,
color);
} else if (bg != color) {
if (size_x == 1 && size_y == 1)
drawPixel(x + i, y + j, bg);
else
- // remark: it's important to call function with orgininal coordinates for x/y
+ // remark: it's important to call function with original coordinates for x/y
fillRect(x + i * size_x, y + j * size_y, size_x, size_y, bg);
}
}
@@ -445,7 +445,7 @@ inline void QuarterScanMatrixPanel::drawPixelRGB24(int16_t x, int16_t y, RGB24 c
*/
-// need to recreate this one, as it wouldnt work to just map where it starts.
+// need to recreate this one, as it wouldn't work to just map where it starts.
inline void QuarterScanMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int16_t module_cols, int16_t module_rows) { }
#endif \ No newline at end of file
diff --git a/examples/One_Quarter_1_4_ScanPanel/One_Quarter_1_4_ScanPanel.ino b/examples/One_Quarter_1_4_ScanPanel/One_Quarter_1_4_ScanPanel.ino
index a3aa5a4..16e47d8 100644
--- a/examples/One_Quarter_1_4_ScanPanel/One_Quarter_1_4_ScanPanel.ino
+++ b/examples/One_Quarter_1_4_ScanPanel/One_Quarter_1_4_ScanPanel.ino
@@ -44,7 +44,7 @@
#define LAT_PIN 4
#define E_PIN -1 // required for 1/32 scan panels
-#include "OneQuarterScanMatrixPanel.h" // Virtual Display to re-map co-ordinates such that they draw correctly on a32x16 1/4 Scan panel
+#include "OneQuarterScanMatrixPanel.h" // Virtual Display to re-map co-ordinates such that they draw correctly on a 32x16 1/4 Scan panel
#include <Wire.h>
/*
diff --git a/examples/One_Quarter_1_4_ScanPanel/README.md b/examples/One_Quarter_1_4_ScanPanel/README.md
index 6af1fa6..817ef5e 100644
--- a/examples/One_Quarter_1_4_ScanPanel/README.md
+++ b/examples/One_Quarter_1_4_ScanPanel/README.md
@@ -53,7 +53,7 @@ You have to use `setCursor(x,y)` and `setTextFGColor() / setTextBGColor()`
### drawString (5x7)
`void drawString(int16_t x, int16_t y, unsigned char* c, uint16_t color, uint16_t bg)`
-Draw String at postion x/y wit foreground `color` and background `bg`
+Draw String at position x/y wit foreground `color` and background `bg`
Example: `display.drawString(0,5,"**Welcome**",display.color565(0,60,255));`
### void setScrollDir(uint8_t d = 1)
diff --git a/examples/PIO_TestPatterns/README.md b/examples/PIO_TestPatterns/README.md
index 291bee2..cba07a2 100644
--- a/examples/PIO_TestPatterns/README.md
+++ b/examples/PIO_TestPatterns/README.md
@@ -1,6 +1,6 @@
# Test Patterns
-Simple solid colors, gradients and test line patterns, could be used to test matrixes for proper operation, flickering and estimate fillrate timings.
+Simple solid colors, gradients and test line patterns, could be used to test matrices for proper operation, flickering and estimate fillrate timings.
Should be build and uploaded as a [platformio](https://platformio.org/) project
diff --git a/examples/PIO_TestPatterns/src/main.cpp b/examples/PIO_TestPatterns/src/main.cpp
index 92a2413..9402e9e 100644
--- a/examples/PIO_TestPatterns/src/main.cpp
+++ b/examples/PIO_TestPatterns/src/main.cpp
@@ -94,7 +94,7 @@ void setup(){
matrix->begin();
matrix->setBrightness8(255);
- // longer latch blanking could help to elliminate ghosting in some cases
+ // longer latch blanking could help to eliminate ghosting in some cases
//matrix->setLatBlanking(2);
ledbuff = (CRGB *)malloc(NUM_LEDS * sizeof(CRGB)); // allocate buffer for some tests
@@ -383,7 +383,7 @@ void IRAM_ATTR mxfill(CRGB *leds){
//
/**
- * The one for 256+ matrixes
+ * The one for 256+ matrices
* otherwise this:
* for (uint8_t i = 0; i < MATRIX_WIDTH; i++) {}
* turns into an infinite loop