# Accent LED's setup and behaviour?

**URL:** <https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788>\
**Category:** ProffieOS\
**Created:** [January 28, 2024, 9:22am UTC](https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788 "2024-01-28T09:22:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steiro912](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@Steiro912](https://crucible.hubbe.net/u/Steiro912)\
**Post date:** [January 28, 2024, 9:22am UTC](https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788/1 "2024-01-28T09:22:36Z")

</div>

Hi.  
I’m doing my first proffie project, and to be honest find the software setup a little confusing.

The saber is a KR sabers Luke ECO Hero kit.  
Everything works just fine, blade, switches, accents and sound.

Wanting to make my own config I have done the following:  
I have wired an accent led to pin4, and another to pin5, with resistors.

I changed  
NUM\_BLADES 3

Then the blade config:

```auto
BladeConfig blades[] = {
 { 0, WS281XBladePtr<132, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
   SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin5, -1, -1, -1>(),
   SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>(), 
 CONFIGARRAY(presets) },
};

```

Now I get this error msg:  
In file included from C:\Users\johnn\Documents\ProffieOS\ProffieOS.ino:621:  
C:\Users\johnn\Documents\ProffieOS\config\jsconfig1.h:20:47: error: cannot convert ‘const char\*’ to ‘StyleFactory\*’ in initialization  
20 | StyleNormalPtr\<WHITE, WHITE, 300, 800\>(), “white”},  
| ^ ~~~~~~  
| |  
| const char\*

exit status 1

Compilation error: cannot convert ‘const char\*’ to ‘StyleFactory\*’ in initialization

If I change the NUM\_BLADES to “2” and delete one of the SimpleBladePtr lines, it works fine.

Any tips?

Also, how can I define the behaviour of the accent leds(blinking)?

Thanks, Johnny

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [January 28, 2024, 9:30am UTC](https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788/2 "2024-01-28T09:30:41Z")

</div>

> [@Steiro912](#):
>
> 20 | [StyleNormalPtr\<WHITE, WHITE, 300, 800\>()](https://fredrik.hubbe.net/lightsaber/style_editor.html?S=WHITE,%20WHITE,%20300,%20800), “white”},

This is because each preset also needs to have one style per blade.

> [@Steiro912](#):
>
> Also, how can I define the behaviour of the accent leds(blinking)?

One style per blade.  
Each style controls what that “blade” is doing.  
Accents are also “blades”.

---

<div class="post-metadata">

**Author:** ![Steiro912](https://crucible.hubbe.net/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@Steiro912](https://crucible.hubbe.net/u/Steiro912)\
**Post date:** [January 28, 2024, 11:25am UTC](https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788/3 "2024-01-28T11:25:37Z")

</div>

Got it, thanks! 🙏

This is what I ended up with:  
StyleNormalPtr\<GREEN, WHITE, 300, 800\>(),  
StylePtr\<InOutHelper\<Lockup\<Sequence\<White, Black, 150, 16, 0b1111111111111111\>, AudioFlicker\<White, Black\>\>, 1, 500\>\>(), StylePtr\<InOutHelper\<Lockup\<Sequence\<White, Black, 200, 16, 0b1100110011000000\>, AudioFlicker\<White, Black\>\>, 1, 500\>\>(),  
“white”},

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [January 28, 2024, 8:27pm UTC](https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788/4 "2024-01-28T20:27:43Z")

</div>

> [@Steiro912](#):
>
> ```auto
> Sequence<White, Black, 150, 16, 0b1111111111111111>
> 
> ```

This can be simplified to just: `White`.  
Doesn’t really matter unless something is slow or you run out of flash memory though.

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [April 24, 2025, 7:27am UTC](https://crucible.hubbe.net/t/accent-leds-setup-and-behaviour/4788/6 "2025-04-24T07:27:58Z")

</div>

A post was split to a new topic: [Help programming accent LEDs](https://crucible.hubbe.net/t/help-programming-accent-leds/6693)
