Compilation error: 'updating' does not name a type. Trying to verify a config in OS5.9

D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1:1: error: 'updating' does not name a type
1 | updating /*
| ^~~~~~~~
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:348:
D:\Documents\Lightsaber\ProffieOS\common\battery_monitor.h: In constructor 'BatteryMonitor::BatteryMonitor()':
D:\Documents\Lightsaber\ProffieOS\common\battery_monitor.h:10:28: error: 'batteryLevelPin' was not declared in this scope
10 | BatteryMonitor() : reader_(batteryLevelPin,
|                            ^~~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\common\battery_monitor.h: In member function 'void BatteryMonitor::SetPinHigh(bool)':
D:\Documents\Lightsaber\ProffieOS\common\battery_monitor.h:34:15: error: 'batteryLevelPin' was not declared in this scope
34 |       pinMode(batteryLevelPin, OUTPUT);
|               ^~~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\common\battery_monitor.h:38:15: error: 'batteryLevelPin' was not declared in this scope
38 |       pinMode(batteryLevelPin, INPUT);
|               ^~~~~~~~~~~~~~~
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:552:
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h: At global scope:
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:47: error: 'bladePin' was not declared in this scope
295 | template<int LEDS, int CONFIG, int DATA_PIN = bladePin, class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                               ^~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:86: error: 'bladePowerPin1' was not declared in this scope
295 | template<int LEDS, int CONFIG, int DATA_PIN = bladePin, class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                                      ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:102: error: 'bladePowerPin2' was not declared in this scope
295 | template<int LEDS, int CONFIG, int DATA_PIN = bladePin, class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                                                      ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:118: error: 'bladePowerPin3' was not declared in this scope
295 | template<int LEDS, int CONFIG, int DATA_PIN = bladePin, class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                                                                      ^~~~~~~~~~~~~~
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:552:
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:132: error: template argument 1 is invalid
295 | template<int LEDS, int CONFIG, int DATA_PIN = bladePin, class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                                                                                    ^
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:132: error: template argument 2 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:295:132: error: template argument 3 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:308:26: error: 'bladePin' was not declared in this scope
308 |           int DATA_PIN = bladePin,
|                          ^~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:310:40: error: 'bladePowerPin1' was not declared in this scope
310 |           class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                        ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:310:56: error: 'bladePowerPin2' was not declared in this scope
310 |           class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                        ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:310:72: error: 'bladePowerPin3' was not declared in this scope
310 |           class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                        ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:310:86: error: template argument 1 is invalid
310 |           class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                                      ^
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:310:86: error: template argument 2 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:310:86: error: template argument 3 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:322:25: error: 'bladePin' was not declared in this scope
322 |          int DATA_PIN = bladePin,
|                         ^~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:325:39: error: 'bladePowerPin1' was not declared in this scope
325 |          class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                       ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:325:55: error: 'bladePowerPin2' was not declared in this scope
325 |          class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                       ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:325:71: error: 'bladePowerPin3' was not declared in this scope
325 |          class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                       ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:325:85: error: template argument 1 is invalid
325 |          class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,
|                                                                                     ^
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:325:85: error: template argument 2 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:325:85: error: template argument 3 is invalid
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:554:
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:266:22: error: 'bladePowerPin1' was not declared in this scope
266 |           int pin1 = bladePowerPin1,
|                      ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:267:22: error: 'bladePowerPin2' was not declared in this scope
267 |           int pin2 = bladePowerPin2,
|                      ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:268:22: error: 'bladePowerPin3' was not declared in this scope
268 |           int pin3 = bladePowerPin3,
|                      ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:269:22: error: 'bladePin' was not declared in this scope
269 |           int pin4 = bladePin>
|                      ^~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h: In function 'BladeBase* StringBladePtr()':
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:287:28: error: 'bladePowerPin1' was not declared in this scope
287 |     MultiChannelLED<PWMPin<bladePowerPin1, LED>,
|                            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:287:47: error: template argument 1 is invalid
287 |     MultiChannelLED<PWMPin<bladePowerPin1, LED>,
|                                               ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:288:50: error: template argument 1 is invalid
288 |                     PWMPin<CLASH_PIN, CLASH_LED> >,
|                                                  ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:289:12: error: 'bladePowerPin2' was not declared in this scope
289 |     PWMPin<bladePowerPin2, LED>,
|            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:289:31: error: template argument 1 is invalid
289 |     PWMPin<bladePowerPin2, LED>,
|                               ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:290:12: error: 'bladePowerPin3' was not declared in this scope
290 |     PWMPin<bladePowerPin3, LED>,
|            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:290:31: error: template argument 1 is invalid
290 |     PWMPin<bladePowerPin3, LED>,
|                               ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:291:12: error: 'bladePowerPin4' was not declared in this scope
291 |     PWMPin<bladePowerPin4, LED>,
|            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:291:31: error: template argument 1 is invalid
291 |     PWMPin<bladePowerPin4, LED>,
|                               ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:292:12: error: 'bladePowerPin5' was not declared in this scope
292 |     PWMPin<bladePowerPin5, LED>,
|            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:292:31: error: template argument 1 is invalid
292 |     PWMPin<bladePowerPin5, LED>,
|                               ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:293:12: error: 'bladePowerPin6' was not declared in this scope
293 |     PWMPin<bladePowerPin6, LED>
|            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:293:31: error: template argument 1 is invalid
293 |     PWMPin<bladePowerPin6, LED>
|                               ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:294:3: error: template argument 1 is invalid
294 |   > blade;
|   ^
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:294:3: error: template argument 2 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:294:3: error: template argument 3 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:294:3: error: template argument 4 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:294:3: error: template argument 5 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:294:3: error: template argument 6 is invalid
D:\Documents\Lightsaber\ProffieOS\blades\simple_blade.h:295:10: error: cannot convert 'int*' to 'BladeBase*' in return
295 |   return &blade;
|          ^~~~~~
|          |
|          int*
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:582:
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h: At global scope:
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:27: error: 'bladePin' was not declared in this scope; did you mean 'blades'?
334 |  { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
|                           ^~~~~~~~
|                           blades
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:60: error: 'bladePowerPin2' was not declared in this scope
334 |  { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
|                                                            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:76: error: 'bladePowerPin3' was not declared in this scope
334 |  { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
|                                                                            ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:90: error: template argument 1 is invalid
334 |  { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
|                                                                                          ^
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:90: error: template argument 2 is invalid
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:94: error: no matching function for call to 'WS281XBladePtr<144, 
<expression error>
, Color8::GRB, 
<expression error>
>()'
334 |  { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
|                                                                                              ^
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:552:
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:314:18: note: candidate: 'template<int LEDS, int DATA_PIN, Color8::Byteorder byteorder, class POWER_PINS, template<int 
<anonymous>
, int 
<anonymous>
, Color8::Byteorder 
<anonymous>
, int 
<anonymous>
, int 
<anonymous>
, int 
<anonymous>
, int 
<anonymous>
> class PinClass, int frequency, int reset_us, int t0h, int t1h, int POWER_OFF_DELAY_MS> BladeBase* WS281XBladePtr()'
314 | class BladeBase *WS281XBladePtr() {
|                  ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\ws2811_blade.h:314:18: note:   template argument deduction/substitution failed:
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:582:
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:94: error: template argument 2 is invalid
334 |  { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
|                                                                                              ^
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:334:94: error: template argument 4 is invalid
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:558:
D:\Documents\Lightsaber\ProffieOS\props\prop_base.h: In member function 'float PropBase::id()':
D:\Documents\Lightsaber\ProffieOS\blades\blade_id.h:84:40: error: 'bladeIdentifyPin' was not declared in this scope
84 | #define BLADE_ID_CLASS SnapshotBladeID
<bladeIdentifyPin>
|                                        ^~~~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\blade_id.h:92:33: note: in expansion of macro 'BLADE_ID_CLASS'
92 | #define BLADE_ID_CLASS_INTERNAL BLADE_ID_CLASS
|                                 ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\props\prop_base.h:354:5: note: in expansion of macro 'BLADE_ID_CLASS_INTERNAL'
354 |     BLADE_ID_CLASS_INTERNAL blade_id;
|     ^~~~~~~~~~~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\blades\blade_id.h:84:56: error: template argument 1 is invalid
84 | #define BLADE_ID_CLASS SnapshotBladeID
<bladeIdentifyPin>
|                                                        ^
D:\Documents\Lightsaber\ProffieOS\blades\blade_id.h:92:33: note: in expansion of macro 'BLADE_ID_CLASS'
92 | #define BLADE_ID_CLASS_INTERNAL BLADE_ID_CLASS
|                                 ^~~~~~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\props\prop_base.h:354:5: note: in expansion of macro 'BLADE_ID_CLASS_INTERNAL'
354 |     BLADE_ID_CLASS_INTERNAL blade_id;
|     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from D:\Documents\Lightsaber\ProffieOS\props\saber_sa22c_buttons.h:82,
from D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:26,
from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:586:
D:\Documents\Lightsaber\ProffieOS\props\prop_base.h:355:26: error: request for member 'id' in 'blade_id', which is of non-class type 'int'
355 |     float ret = blade_id.id();
|                          ^~
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:640:
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h: At global scope:
D:\Documents\Lightsaber\ProffieOS\config\MaxLGTMaulB.h:339:34: error: 'powerButtonPin' was not declared in this scope; did you mean 'PowerButton'?
339 | Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
|                                  ^~~~~~~~~~~~~~
|                                  PowerButton
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino: In member function 'virtual bool Commands::Parse(const char*, const char*)':
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:858:23: error: 'boosterPin' was not declared in this scope
858 |          digitalWrite(boosterPin, HIGH);
|                       ^~~~~~~~~~
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:863:23: error: 'boosterPin' was not declared in this scope
863 |          digitalWrite(boosterPin, LOW);
|                       ^~~~~~~~~~
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1651:
D:\Documents\Lightsaber\ProffieOS\motion\lsm6ds3h.h: In member function 'virtual void LSM6DS3H::Loop()':
D:\Documents\Lightsaber\ProffieOS\motion\lsm6ds3h.h:129:15: error: 'motionSensorInterruptPin' was not declared in this scope
129 |       pinMode(motionSensorInterruptPin, INPUT);
|               ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1671:
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h: In member function 'void Amplifier::Enable()':
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h:45:22: error: 'amplifierPin' was not declared in this scope; did you mean 'Amplifier'?
45 |     if (!digitalRead(amplifierPin)) {
|                      ^~~~~~~~~~~~
|                      Amplifier
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h: In member function 'virtual void Amplifier::Setup()':
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h:58:13: error: 'amplifierPin' was not declared in this scope; did you mean 'Amplifier'?
58 |     pinMode(amplifierPin, OUTPUT);
|             ^~~~~~~~~~~~
|             Amplifier
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h: In member function 'virtual void Amplifier::Loop()':
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h:78:15: error: 'amplifierPin' was not declared in this scope; did you mean 'Amplifier'?
78 |       pinMode(amplifierPin, INPUT_ANALOG); // Let the pull-down do the work
|               ^~~~~~~~~~~~
|               Amplifier
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h: In member function 'virtual bool Amplifier::Parse(const char*, const char*)':
D:\Documents\Lightsaber\ProffieOS\sound\amplifier.h:98:10: error: 'amplifierPin' was not declared in this scope; did you mean 'Amplifier'?
98 |  pinMode(amplifierPin, INPUT_ANALOG); // Let the pull-down do the work
|          ^~~~~~~~~~~~
|          Amplifier
In file included from D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1673:
D:\Documents\Lightsaber\ProffieOS\common\booster.h: In member function 'void Booster::Enable()':
D:\Documents\Lightsaber\ProffieOS\common\booster.h:30:15: error: 'boosterPin' was not declared in this scope; did you mean 'Booster'?
30 |       pinMode(boosterPin, OUTPUT);
|               ^~~~~~~~~~
|               Booster
D:\Documents\Lightsaber\ProffieOS\common\booster.h: In member function 'virtual void Booster::Setup()':
D:\Documents\Lightsaber\ProffieOS\common\booster.h:41:13: error: 'boosterPin' was not declared in this scope; did you mean 'Booster'?
41 |     pinMode(boosterPin, OUTPUT);
|             ^~~~~~~~~~
|             Booster
D:\Documents\Lightsaber\ProffieOS\common\booster.h: In member function 'virtual void Booster::Loop()':
D:\Documents\Lightsaber\ProffieOS\common\booster.h:55:20: error: 'boosterPin' was not declared in this scope; did you mean 'Booster'?
55 |       digitalWrite(boosterPin, LOW); // turn the booster off
|                    ^~~~~~~~~~
|                    Booster
D:\Documents\Lightsaber\ProffieOS\common\booster.h: In member function 'virtual bool Booster::Parse(const char*, const char*)':
D:\Documents\Lightsaber\ProffieOS\common\booster.h:70:22: error: 'boosterPin' was not declared in this scope; did you mean 'Booster'?
70 |         digitalWrite(boosterPin, LOW); // turn the booster off
|                      ^~~~~~~~~~
|                      Booster
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino: In function 'void setup()':
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1691:11: error: 'boosterPin' was not declared in this scope; did you mean 'booster'?
1691 |   pinMode(boosterPin, OUTPUT);
|           ^~~~~~~~~~
|           booster
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1722:44: error: 'batteryLevelPin' was not declared in this scope; did you mean 'BatteryLevel'?
1722 |     srand((rand() * 917823) ^ LSAnalogRead(batteryLevelPin));
|                                            ^~~~~~~~~~~~~~~
|                                            BatteryLevel
D:\Documents\Lightsaber\ProffieOS\ProffieOS.ino:1739:9: error: 'sdCardSelectPin' was not declared in this scope
1739 |     if (sdCardSelectPin >= 0 && sdCardSelectPin < 255) {
|         ^~~~~~~~~~~~~~~
exit status 1
Compilation error: 'updating' does not name a type

MaxLGTMaulB.h (65.5 KB)

It looks like you have accidentally typed or pasted “updated” in the first line of ProffieOS.ino