Skip to content

Commit dec4b0f

Browse files
committed
Option to switch off MatrixHardware messages
1 parent 65824d0 commit dec4b0f

13 files changed

+45
-2
lines changed

src/MatrixHardware_ESP32_HUB75AdapterLite_V0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737

3838
#define GPIOPINOUT HUB75_ADAPTER_LITE_V0_PINOUT
3939

40+
#ifndef SM_INTERNAL
4041
#pragma message "MatrixHardware: HUB75 Adapter Lite V0 pinout"
42+
#endif
4143

4244
//Upper half RGB
4345
#define BIT_R1 (1<<0)

src/MatrixHardware_ESP32_HUB75Adapter_SMT.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838

3939
#define GPIOPINOUT HUB75_ADAPTER_V0_SMT_PINOUT
4040

41-
41+
#ifndef SM_INTERNAL
4242
#pragma message "MatrixHardware: HUB75 Adapter V0 SMT pinout"
43+
#endif
4344

4445
//Upper half RGB
4546
#define BIT_R1 (1<<0)

src/MatrixHardware_ESP32_HUB75Adapter_THT.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838

3939
#define GPIOPINOUT HUB75_ADAPTER_V0_THT_PINOUT
4040

41+
#ifndef SM_INTERNAL
4142
#pragma message "MatrixHardware: HUB75 Adapter V0 THT pinout"
43+
#endif
4244

4345
//Upper half RGB
4446
#define BIT_R1 (1<<0)

src/MatrixHardware_ESP32_RGB64x32MatrixPanel-I2S-DMA_default.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737

3838
#define GPIOPINOUT HUB75_ADAPTER_LITE_V0_PINOUT
3939

40+
#ifndef SM_INTERNAL
4041
#pragma message "MatrixHardware: ESP32-RGB64x32MatrixPanel-I2S-DMA default pinout"
42+
#endif
4143

4244
//Upper half RGB
4345
#define BIT_R1 (1<<0)

src/MatrixHardware_ESP32_SmartLedShieldV0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646

4747
#define GPIOPINOUT SMARTLED_SHIELD_V0_PINOUT
4848

49+
#ifndef SM_INTERNAL
4950
#pragma message "MatrixHardware: ESP32 SmartLED shield V0 pinout"
51+
#endif
5052

5153
//Upper half RGB
5254
#define BIT_R1 (1<<0)

src/MatrixHardware_ESP32_V0.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@
6767

6868

6969
#if (GPIOPINOUT == ESP32_JC_RIBBON_PINOUT)
70+
71+
#ifndef SM_INTERNAL
7072
#pragma message "MatrixHardware: Jason Coon ESP32 NodeMCU shield wiring"
73+
#endif
74+
7175
// This pinout takes a ribbon cable and flattens it, pin order is 1, 9, 2, 10 ...
7276
// it connects to https://www.tindie.com/products/jasoncoon/16-output-nodemcu-esp32-wifi-ble-led-controller/
7377
// *** WARNING, I cut the trace on Jason's board that went to pin 3, and patched a wire
@@ -135,7 +139,10 @@
135139
#define OE_PIN GPIO_NUM_12
136140

137141
#elif (GPIOPINOUT == ESP32_JC_RIBBON_PINOUT_WEMOS)
142+
#ifndef SM_INTERNAL
138143
#pragma message "MatrixHardware: Jason Coon ESP32 Wemos/Lolin shield wiring"
144+
#endif
145+
139146
// This pinout takes a ribbon cable and flattens it, pin order is 1, 9, 2, 10 ...
140147
// it connects to https://www.tindie.com/products/jasoncoon/16-output-wemos-d32-wifi-ble-led-controller/
141148
// *** WARNING, I cut the trace on Jason's board that went to pin 3, and patched a wire
@@ -205,7 +212,9 @@
205212

206213
#elif (GPIOPINOUT == ESP32_FORUM_PINOUT)
207214

215+
#ifndef SM_INTERNAL
208216
#pragma message "MatrixHardware: ESP32 forum wiring"
217+
#endif
209218

210219
// ADDX is output directly using GPIO
211220
#define CLKS_DURING_LATCH 0
@@ -267,7 +276,9 @@
267276

268277
#elif (GPIOPINOUT == HUB75_ADAPTER_PINOUT)
269278

279+
#ifndef SM_INTERNAL
270280
#pragma message "MatrixHardware: Hub75 Adapter Pinout"
281+
#endif
271282

272283
// ADDX is output directly using GPIO
273284
#define CLKS_DURING_LATCH 0
@@ -328,7 +339,9 @@
328339
#define CLK_PIN GPIO_NUM_2
329340

330341
#elif (GPIOPINOUT == ESP32_FORUM_PINOUT_WITH_LATCH)
342+
#ifndef SM_INTERNAL
331343
#pragma message "MatrixHardware: ESP32 forum wiring with external 74AHCT373 latch circuit - note untested since 2018, may be broken"
344+
#endif
332345

333346
// Note: this is untested since 2018, may be broken
334347

@@ -356,7 +369,9 @@
356369

357370
#elif (GPIOPINOUT == SMARTLED_SHIELD_V0_PINOUT)
358371

372+
#ifndef SM_INTERNAL
359373
#pragma message "MatrixHardware: ESP32 SmartLED shield V0 pinout"
374+
#endif
360375

361376
// ADDX is output on RGB pins and stored in external latch (need multiple of 32-bits for full data struct, so pad 2 CLKs to 4 here)
362377
#define MATRIX_I2S_MODE I2S_PARALLEL_BITS_8
@@ -389,7 +404,9 @@
389404

390405
#elif (GPIOPINOUT == HUB75_ADAPTER_LATCH_BREADBOARD_PINOUT)
391406

407+
#ifndef SM_INTERNAL
392408
#pragma message "MatrixHardware: HUB75 Adapter Latch Breadboard pinout"
409+
#endif
393410

394411
// ADDX is output on RGB pins and stored in external latch (need multiple of 32-bits for full data struct, so pad 2 CLKs to 4 here)
395412
#define MATRIX_I2S_MODE I2S_PARALLEL_BITS_8
@@ -422,7 +439,9 @@
422439

423440
#elif (GPIOPINOUT == HUB75_ADAPTER_V0_THT_PINOUT)
424441

442+
#ifndef SM_INTERNAL
425443
#pragma message "MatrixHardware: HUB75 Adapter V0 THT pinout"
444+
#endif
426445

427446
// ADDX is output on RGB pins and stored in external latch (need multiple of 32-bits for full data struct, so pad 2 CLKs to 4 here)
428447
#define MATRIX_I2S_MODE I2S_PARALLEL_BITS_8
@@ -458,7 +477,9 @@
458477

459478
#elif (GPIOPINOUT == HUB75_ADAPTER_V0_SMT_PINOUT)
460479

480+
#ifndef SM_INTERNAL
461481
#pragma message "MatrixHardware: HUB75 Adapter V0 SMT pinout"
482+
#endif
462483

463484
// ADDX is output on RGB pins and stored in external latch (need multiple of 32-bits for full data struct, so pad 2 CLKs to 4 here)
464485
#define MATRIX_I2S_MODE I2S_PARALLEL_BITS_8

src/MatrixHardware_Esp32_AtomLiteApaOnly.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
#define BIT_E (1<<12)
5050

5151

52-
52+
#ifndef SM_INTERNAL
5353
#pragma message "MatrixHardware: Atom Lite Apa102-Only"
54+
#endif
5455

5556
// ADDX is output directly using GPIO
5657
#define CLKS_DURING_LATCH 0

src/MatrixHardware_Teensy3_ShieldV1toV3.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#ifndef MATRIX_HARDWARE_H
2727
#define MATRIX_HARDWARE_H
2828

29+
#ifndef SM_INTERNAL
2930
#pragma message "MatrixHardware: SmartMatrix Shield for Teensy 3 V1-V3"
31+
#endif
3032

3133
#define COLOR_CHANNELS_PER_PIXEL 3
3234
#define PIXELS_UPDATED_PER_CLOCK 2

src/MatrixHardware_Teensy3_ShieldV4.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#ifndef MATRIX_HARDWARE_H
2727
#define MATRIX_HARDWARE_H
2828

29+
#ifndef SM_INTERNAL
2930
#pragma message "MatrixHardware: SmartLED Shield for Teensy 3 (V4)"
31+
#endif
3032

3133
#define DMA_UPDATES_PER_CLOCK 2
3234
#define ADDX_UPDATE_ON_DATA_PINS

src/MatrixHardware_Teensy4_ShieldV0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#ifndef MATRIX_HARDWARE_H
3939
#define MATRIX_HARDWARE_H
4040

41+
#ifndef SM_INTERNAL
4142
#pragma message "MatrixHardware: SmartLED Shield for Teensy 4 V0"
43+
#endif
4244

4345
/* an advanced user may need to tweak these values */
4446

src/MatrixHardware_Teensy4_ShieldV4Adapter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
#ifndef MATRIX_HARDWARE_H
4545
#define MATRIX_HARDWARE_H
4646

47+
#ifndef SM_INTERNAL
4748
#pragma message "MatrixHardware: Teensy 4 Adapter attached to SmartLED Shield for Teensy 3 (V4)"
49+
#endif
4850

4951
/* an advanced user may need to tweak these values */
5052

src/MatrixHardware_Teensy4_ShieldV4WireMod.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
#ifndef MATRIX_HARDWARE_H
4242
#define MATRIX_HARDWARE_H
4343

44+
#ifndef SM_INTERNAL
4445
#pragma message "MatrixHardware: Teensy 4 Wired to SmartLED Shield for Teensy 3 (V4)"
46+
#endif
4547

4648
/* an advanced user may need to tweak these values */
4749

src/MatrixHardware_Teensy4_ShieldV5.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#ifndef MATRIX_HARDWARE_H
3939
#define MATRIX_HARDWARE_H
4040

41+
#ifndef SM_INTERNAL
4142
#pragma message "MatrixHardware: SmartLED Shield for Teensy 4 (V5)"
43+
#endif
4244

4345
/* an advanced user may need to tweak these values */
4446

0 commit comments

Comments
 (0)