Booster pins not declared

hello everyone, so I just started messing around with proffie about a week ago, Ive been managing ok but i`m definitely in over my head, today when i was adding a couple of fonts and when i compiled it kept saying “booster pins not declared” Ive been able to troubleshoot most of the problems Ive run into but im not sure what to do on this one. i know i must sound super stupid lol. thanks for any info, sorry for the trouble

here the link to my config mysaber_config.h - Pastebin.com

The config file looks reasonable, so I don’t think that’s where the problem is.
Can you also paste the actual error you are receiving? (Be sure to scroll up and get the first error you see, as that is the most important one.) Also, I’d be curious to see what the beginning of your ProffieOS.ino looks like.

Btw, using pastebin is ok, but not required. You can just click the “preformatted text” button and paste the code right there if you like.

oh ok, `Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: “Proffieboard V2, Serial, SDCARD (SPI), 80 MHz, Smallest Code”

In file included from sketch\config/mysaber_config.h:2,

             from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:43:

sketch\config/proffieboard_v2_config.h:14:1: error: expected class-name before ‘enum’

14 | enum SaberPins {

  | ^~~~

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:348:

sketch\common/battery_monitor.h: In constructor ‘BatteryMonitor::BatteryMonitor()’:

sketch\common/battery_monitor.h:10:28: error: ‘batteryLevelPin’ was not declared in this scope

10 | BatteryMonitor() : reader_(batteryLevelPin,

  |                            ^~~~~~~~~~~~~~~

sketch\common/battery_monitor.h: In member function ‘void BatteryMonitor::SetPinHigh(bool)’:

sketch\common/battery_monitor.h:34:15: error: ‘batteryLevelPin’ was not declared in this scope

34 | pinMode(batteryLevelPin, OUTPUT);

  |               ^~~~~~~~~~~~~~~

sketch\common/battery_monitor.h:38:15: error: ‘batteryLevelPin’ was not declared in this scope

38 | pinMode(batteryLevelPin, INPUT);

  |               ^~~~~~~~~~~~~~~

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:552:

sketch\blades/ws2811_blade.h: At global scope:

sketch\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>,

  |                                               ^~~~~~~~

sketch\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>,

  |                                                                                      ^~~~~~~~~~~~~~

sketch\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>,

  |                                                                                                      ^~~~~~~~~~~~~~

sketch\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 C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:552:

sketch\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>,

  |                                                                                                                                    ^

sketch\blades/ws2811_blade.h:295:132: error: template argument 2 is invalid

sketch\blades/ws2811_blade.h:295:132: error: template argument 3 is invalid

sketch\blades/ws2811_blade.h:308:26: error: ‘bladePin’ was not declared in this scope

308 | int DATA_PIN = bladePin,

  |                          ^~~~~~~~

sketch\blades/ws2811_blade.h:310:40: error: ‘bladePowerPin1’ was not declared in this scope

310 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                        ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:310:56: error: ‘bladePowerPin2’ was not declared in this scope

310 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                                        ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:310:72: error: ‘bladePowerPin3’ was not declared in this scope

310 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                                                        ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:310:86: error: template argument 1 is invalid

310 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                                                                      ^

sketch\blades/ws2811_blade.h:310:86: error: template argument 2 is invalid

sketch\blades/ws2811_blade.h:310:86: error: template argument 3 is invalid

sketch\blades/ws2811_blade.h:322:25: error: ‘bladePin’ was not declared in this scope

322 | int DATA_PIN = bladePin,

  |                         ^~~~~~~~

sketch\blades/ws2811_blade.h:325:39: error: ‘bladePowerPin1’ was not declared in this scope

325 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                       ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:325:55: error: ‘bladePowerPin2’ was not declared in this scope

325 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                                       ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:325:71: error: ‘bladePowerPin3’ was not declared in this scope

325 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                                                       ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:325:85: error: template argument 1 is invalid

325 | class POWER_PINS = PowerPINS<bladePowerPin1, bladePowerPin2, bladePowerPin3>,

  |                                                                                     ^

sketch\blades/ws2811_blade.h:325:85: error: template argument 2 is invalid

sketch\blades/ws2811_blade.h:325:85: error: template argument 3 is invalid

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:554:

sketch\blades/simple_blade.h:266:22: error: ‘bladePowerPin1’ was not declared in this scope

266 | int pin1 = bladePowerPin1,

  |                      ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:267:22: error: ‘bladePowerPin2’ was not declared in this scope

267 | int pin2 = bladePowerPin2,

  |                      ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:268:22: error: ‘bladePowerPin3’ was not declared in this scope

268 | int pin3 = bladePowerPin3,

  |                      ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:269:22: error: ‘bladePin’ was not declared in this scope

269 | int pin4 = bladePin>

  |                      ^~~~~~~~

sketch\blades/simple_blade.h: In function ‘BladeBase* StringBladePtr()’:

sketch\blades/simple_blade.h:287:28: error: ‘bladePowerPin1’ was not declared in this scope

287 | MultiChannelLED<PWMPin<bladePowerPin1, LED>,

  |                            ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:287:47: error: template argument 1 is invalid

287 | MultiChannelLED<PWMPin<bladePowerPin1, LED>,

  |                                               ^

sketch\blades/simple_blade.h:288:50: error: template argument 1 is invalid

288 | PWMPin<CLASH_PIN, CLASH_LED> >,

  |                                                  ^

sketch\blades/simple_blade.h:289:12: error: ‘bladePowerPin2’ was not declared in this scope

289 | PWMPin<bladePowerPin2, LED>,

  |            ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:289:31: error: template argument 1 is invalid

289 | PWMPin<bladePowerPin2, LED>,

  |                               ^

sketch\blades/simple_blade.h:290:12: error: ‘bladePowerPin3’ was not declared in this scope

290 | PWMPin<bladePowerPin3, LED>,

  |            ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:290:31: error: template argument 1 is invalid

290 | PWMPin<bladePowerPin3, LED>,

  |                               ^

sketch\blades/simple_blade.h:291:12: error: ‘bladePowerPin4’ was not declared in this scope

291 | PWMPin<bladePowerPin4, LED>,

  |            ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:291:31: error: template argument 1 is invalid

291 | PWMPin<bladePowerPin4, LED>,

  |                               ^

sketch\blades/simple_blade.h:292:12: error: ‘bladePowerPin5’ was not declared in this scope

292 | PWMPin<bladePowerPin5, LED>,

  |            ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:292:31: error: template argument 1 is invalid

292 | PWMPin<bladePowerPin5, LED>,

  |                               ^

sketch\blades/simple_blade.h:293:12: error: ‘bladePowerPin6’ was not declared in this scope

293 | PWMPin<bladePowerPin6, LED>

  |            ^~~~~~~~~~~~~~

sketch\blades/simple_blade.h:293:31: error: template argument 1 is invalid

293 | PWMPin<bladePowerPin6, LED>

  |                               ^

sketch\blades/simple_blade.h:294:3: error: template argument 1 is invalid

294 | > blade;

  |   ^

sketch\blades/simple_blade.h:294:3: error: template argument 2 is invalid

sketch\blades/simple_blade.h:294:3: error: template argument 3 is invalid

sketch\blades/simple_blade.h:294:3: error: template argument 4 is invalid

sketch\blades/simple_blade.h:294:3: error: template argument 5 is invalid

sketch\blades/simple_blade.h:294:3: error: template argument 6 is invalid

sketch\blades/simple_blade.h:295:10: error: cannot convert ‘int*’ to ‘BladeBase*’ in return

295 | return &blade;

  |          ^~~~~~

  |          |

  |          int*

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:582:

sketch\config/mysaber_config.h: At global scope:

sketch\config/mysaber_config.h:83:27: error: ‘bladePin’ was not declared in this scope; did you mean ‘blades’?

83 | { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },

  |                           ^~~~~~~~

  |                           blades

sketch\config/mysaber_config.h:83:60: error: ‘bladePowerPin2’ was not declared in this scope

83 | { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },

  |                                                            ^~~~~~~~~~~~~~

sketch\config/mysaber_config.h:83:76: error: ‘bladePowerPin3’ was not declared in this scope

83 | { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },

  |                                                                            ^~~~~~~~~~~~~~

sketch\config/mysaber_config.h:83:90: error: template argument 1 is invalid

83 | { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },

  |                                                                                          ^

sketch\config/mysaber_config.h:83:90: error: template argument 2 is invalid

sketch\config/mysaber_config.h:83:94: error: no matching function for call to ‘WS281XBladePtr<132, , Color8::GRB, >()’

83 | { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },

  |                                                                                              ^

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:552:

sketch\blades/ws2811_blade.h:314:18: note: candidate: ‘template<int LEDS, int DATA_PIN, Color8::Byteorder byteorder, class POWER_PINS, template<int , int , Color8::Byteorder , int , int , int , int > class PinClass, int frequency, int reset_us, int t0h, int t1h, int POWER_OFF_DELAY_MS> BladeBase* WS281XBladePtr()’

314 | class BladeBase *WS281XBladePtr() {

  |                  ^~~~~~~~~~~~~~

sketch\blades/ws2811_blade.h:314:18: note: template argument deduction/substitution failed:

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:582:

sketch\config/mysaber_config.h:83:94: error: template argument 2 is invalid

83 | { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },

  |                                                                                              ^

sketch\config/mysaber_config.h:83:94: error: template argument 4 is invalid

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:558:

c:\users\haven\appdata\local\temp\arduino_build_612814\sketch\props\prop_base.h: In member function ‘float PropBase::id()’:

sketch\blades/blade_id.h:84:40: error: ‘bladeIdentifyPin’ was not declared in this scope

84 | #define BLADE_ID_CLASS SnapshotBladeID

  |                                        ^~~~~~~~~~~~~~~~

sketch\blades/blade_id.h:92:33: note: in expansion of macro ‘BLADE_ID_CLASS’

92 | #define BLADE_ID_CLASS_INTERNAL BLADE_ID_CLASS

  |                                 ^~~~~~~~~~~~~~

c:\users\haven\appdata\local\temp\arduino_build_612814\sketch\props\prop_base.h:354:5: note: in expansion of macro ‘BLADE_ID_CLASS_INTERNAL’

354 | BLADE_ID_CLASS_INTERNAL blade_id;

  |     ^~~~~~~~~~~~~~~~~~~~~~~

sketch\blades/blade_id.h:84:56: error: template argument 1 is invalid

84 | #define BLADE_ID_CLASS SnapshotBladeID

  |                                                        ^

sketch\blades/blade_id.h:92:33: note: in expansion of macro ‘BLADE_ID_CLASS’

92 | #define BLADE_ID_CLASS_INTERNAL BLADE_ID_CLASS

  |                                 ^~~~~~~~~~~~~~

c:\users\haven\appdata\local\temp\arduino_build_612814\sketch\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 c:\users\haven\appdata\local\temp\arduino_build_612814\sketch\props\saber_sa22c_buttons.h:123,

             from sketch\config/mysaber_config.h:23,

             from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:586:

c:\users\haven\appdata\local\temp\arduino_build_612814\sketch\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 C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:640:

sketch\config/mysaber_config.h: At global scope:

sketch\config/mysaber_config.h:88:34: error: ‘powerButtonPin’ was not declared in this scope; did you mean ‘PowerButton’?

88 | Button PowerButton(BUTTON_POWER, powerButtonPin, “pow”);

  |                                  ^~~~~~~~~~~~~~

  |                                  PowerButton

C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino: In member function ‘virtual bool Commands::Parse(const char*, const char*)’:

ProffieOS:858:23: error: ‘boosterPin’ was not declared in this scope

858 | digitalWrite(boosterPin, HIGH);

  |                       ^~~~~~~~~~

ProffieOS:863:23: error: ‘boosterPin’ was not declared in this scope

863 | digitalWrite(boosterPin, LOW);

  |                       ^~~~~~~~~~

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:1651:

sketch\motion/lsm6ds3h.h: In member function ‘virtual void LSM6DS3H::Loop()’:

sketch\motion/lsm6ds3h.h:123:15: error: ‘motionSensorInterruptPin’ was not declared in this scope

123 | pinMode(motionSensorInterruptPin, INPUT);

  |               ^~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:1671:

sketch\sound/amplifier.h: In member function ‘void Amplifier::Enable()’:

sketch\sound/amplifier.h:45:22: error: ‘amplifierPin’ was not declared in this scope; did you mean ‘Amplifier’?

45 | if (!digitalRead(amplifierPin)) {

  |                      ^~~~~~~~~~~~

  |                      Amplifier

sketch\sound/amplifier.h: In member function ‘virtual void Amplifier::Setup()’:

sketch\sound/amplifier.h:58:13: error: ‘amplifierPin’ was not declared in this scope; did you mean ‘Amplifier’?

58 | pinMode(amplifierPin, OUTPUT);

  |             ^~~~~~~~~~~~

  |             Amplifier

sketch\sound/amplifier.h: In member function ‘virtual void Amplifier::Loop()’:

sketch\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

sketch\sound/amplifier.h: In member function ‘virtual bool Amplifier::Parse(const char*, const char*)’:

sketch\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 C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino:1673:

sketch\common/booster.h: In member function ‘void Booster::Enable()’:

sketch\common/booster.h:30:15: error: ‘boosterPin’ was not declared in this scope; did you mean ‘Booster’?

30 | pinMode(boosterPin, OUTPUT);

  |               ^~~~~~~~~~

  |               Booster

sketch\common/booster.h: In member function ‘virtual void Booster::Setup()’:

sketch\common/booster.h:41:13: error: ‘boosterPin’ was not declared in this scope; did you mean ‘Booster’?

41 | pinMode(boosterPin, OUTPUT);

  |             ^~~~~~~~~~

  |             Booster

sketch\common/booster.h: In member function ‘virtual void Booster::Loop()’:

sketch\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

sketch\common/booster.h: In member function ‘virtual bool Booster::Parse(const char*, const char*)’:

sketch\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

C:\Users\haven\OneDrive\Desktop\ProffieOS-v5.7(2)\ProffieOS\ProffieOS.ino: In function ‘void setup()’:

ProffieOS:1691:11: error: ‘boosterPin’ was not declared in this scope; did you mean ‘booster’?

1691 | pinMode(boosterPin, OUTPUT);

  |           ^~~~~~~~~~

  |           booster

ProffieOS:1722:44: error: ‘batteryLevelPin’ was not declared in this scope; did you mean ‘BatteryLevel’?

1722 | srand((rand() * 917823) ^ LSAnalogRead(batteryLevelPin));

  |                                            ^~~~~~~~~~~~~~~

  |                                            BatteryLevel

ProffieOS:1739:9: error: ‘sdCardSelectPin’ was not declared in this scope

1739 | if (sdCardSelectPin >= 0 && sdCardSelectPin < 255) {

  |         ^~~~~~~~~~~~~~~

exit status 1

‘boosterPin’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

`thank you

This is the problem. Unfortunately it’s an error that is a bit hard to diagnose exactly. The most likely reason for this error is that there is some junk in your ProffieOS.ino file somewhere. (Somewhere before the first #include CONFIG_FILE)

oh i see, any suggestions on how i should proceed? maybe reinstall proffieOS?

That would work.
Or, you could just post the first 100 lines of ProffieOS.ino here and let me have a look at them. :slight_smile:

i downloaded a new copy and it worked! i must have accidentally typed something with switching tabs or something, ill be more care full next time, lol. thank you so much for the help, and may the force be with you!!