I changed the blade number to 3 and pasted the other 2 lines into the rest of the presets so they all have 3 styles now. This is what Arduino says… maybe the code I was given is bad?
Arduino: 1.8.19 (Mac OS X), TD: 1.57, Board: “Proffieboard V2, Serial + WebUSB, SDCARD (SPI), 80 MHz, Smallest Code”
In file included from /Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/ProffieOS.ino:563:
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:179:1: error: expected ‘}’ before ‘StylePtr’
179 | StylePtr<Layers<Green,LockupTrL<AudioFlickerL,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
| ^~~~~~~~
In file included from /Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/ProffieOS.ino:563:
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:177:4: note: to match this ‘{’
177 | { “Newtype;common”, “tracks/MobileSuit.wav”,
| ^
In file included from /Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/ProffieOS.ino:563:
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:179:1: error: expected ‘}’ before ‘StylePtr’
179 | StylePtr<Layers<Green,LockupTrL<AudioFlickerL,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
| ^~~~~~~~
In file included from /Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/ProffieOS.ino:563:
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:47:20: note: to match this ‘{’
47 | Preset presets[] = {
| ^
In file included from /Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/ProffieOS.ino:563:
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:179:1: error: expected ‘,’ or ‘;’ before ‘StylePtr’
179 | StylePtr<Layers<Green,LockupTrL<AudioFlickerL,TrInstant,TrFade<500>,SaberBase::LOCKUP_NORMAL>,LockupTrL<AudioFlickerL,TrInstant,TrFade<500>,SaberBase::LOCKUP_LIGHTNING_BLOCK>,TransitionEffectL<TrConcat<TrInstant,White,TrFade<400>>,EFFECT_CLASH>,InOutTrL<TrInstant,TrInstant,TransitionLoop<Green,TrConcat<TrBoing<3000,9>,Black,TrDelay<2000>>>>>>(),
| ^~~~~~~~
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:183:1: error: expected declaration before ‘}’ token
183 | };
| ^
In file included from /Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/ProffieOS.ino:537:
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:185:109: error: cannot convert ‘Preset*’ to ‘BladeBase*’ in initialization
185 | { 0, WS281XBladePtr<133, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
| ^~~~~~~
| |
| Preset*
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/common/preset.h:6:24: note: in definition of macro ‘CONFIGARRAY’
6 | #define CONFIGARRAY(X) X, NELEM(X)
| ^
ProffieOS:299:28: error: invalid conversion from ‘unsigned int’ to ‘BladeBase*’ [-fpermissive]
299 | #define NELEM(X) (sizeof(X)/sizeof((X)[0]))
| ^~~~~~
| |
| unsigned int
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/common/preset.h:6:27: note: in expansion of macro ‘NELEM’
6 | #define CONFIGARRAY(X) X, NELEM(X)
| ^~~~~
/Users/ChrisBodall/Chris’s Stuff/Sabers/ProffieOS/config/TPS.h:185:97: note: in expansion of macro ‘CONFIGARRAY’
185 | { 0, WS281XBladePtr<133, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
| ^~~~~~~~~~~
exit status 1
invalid conversion from ‘unsigned int’ to ‘BladeBase*’ [-fpermissive]
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.