Regarding 8bitdo SN-30's switch mode, setting the player led is not working as intended...

24 views
Skip to first unread message

Nathan Ramanathan

unread,
Apr 26, 2020, 4:20:14 PM4/26/20
to Unijoysticle
Hi Ricardo!

I wanted to play around with my 8bitdo's player LEDs in Switch mode, but the function that sets the 4 LEDs is not working.  Every number sets the player to player 1.  
Is there a way to set it like a Wiimote? For instance, I want to light up only player 2's led or only player 3's led.

                 Intended        Reality
Player 2:   0 0 1 0          0 0 0 1
Player 3:   0 1 0 0          0 0 0 1

Thanks,
- Nathan Ramanathan

Ricardo Quesada

unread,
Apr 26, 2020, 4:34:12 PM4/26/20
to Nathan Ramanathan, Unijoysticle
Hi,

I couldn't find a way to do it.
AFAIK, the 8bitdo firmware is only compatible with the buttons, but
rumble and LEDs are not working as expected.
I filed a bug a while ago (I sent them an email), but their response
was kind of "thanks..." and they didn't give a ticket number or
anything like that.
> --
> You received this message because you are subscribed to the Google Groups "Unijoysticle" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to unijoysticle...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/unijoysticle/c408b647-eb0d-4527-a030-8b81c8c7e7d4%40googlegroups.com.

Nathan Ramanathan

unread,
Apr 27, 2020, 5:36:06 PM4/27/20
to Unijoysticle
Do the official Nintendo joycons/pro controllers work with setting the LEDs, or is this just 8bitdo' issue?

Ricardo Quesada

unread,
Apr 27, 2020, 5:51:23 PM4/27/20
to Nathan Ramanathan, Unijoysticle
I haven't tested it with the joycon, but Nintendo Switch Pro LEDs
works Ok with the unijoysticle.

On Mon, Apr 27, 2020 at 2:36 PM Nathan Ramanathan
<nathan6r...@gmail.com> wrote:
>
> Do the official Nintendo joycons/pro controllers work with setting the LEDs, or is this just 8bitdo' issue?
>
> --
> You received this message because you are subscribed to the Google Groups "Unijoysticle" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to unijoysticle...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/unijoysticle/da44b5d6-825a-4a5a-b7b2-4fb1060bbe4c%40googlegroups.com.

Nathan Ramanathan

unread,
Apr 27, 2020, 7:31:51 PM4/27/20
to Unijoysticle
I'll share what I have so far, but NOTE I can't seem to repeat my experiments again for some reason; my 8bitdo is always setting everything to player 1's LED, I might have changed some parts of my code, but I was indeed able to set the LEDs individually at some point of my testing:

Anyways,

I looked at a pending patch of the Linux kernel and found this piece of code for the joycon's LED
I modified your led script from 

req->data[0] = d->joystick_port;
to
req->data[0] = (0 << 4) | (0xF >> (4-4));

this seems to set the player LEDs as follows(where `+` is the LED being on, and `-` is the LED turned off)

+ - - -
(which is player 1)

and if I change the code to: 
req->data[0] = (0 << 4) | (0xF >> (4-0));

I get

+ + + +
(which is player 4)

and if I did:
req->data[0] = (0 << 4) | 0x7;

I got:

+ + - -
(which is player 2 in Nintendo's way)

I was never able to set the other LEDs though.  So, maybe there's something wrong with our payload structure?  I think I played with the payload too much, that I can't repeat my experiments...

Ricardo Quesada

unread,
Apr 27, 2020, 7:53:50 PM4/27/20
to Nathan Ramanathan, Unijoysticle
Thanks.
Just to understand, at some point you were able to change the 8bitdo
LEDs? is that correct?
> --
> You received this message because you are subscribed to the Google Groups "Unijoysticle" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to unijoysticle...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/unijoysticle/5787a752-1f5c-4f8c-9e48-dc571008f5c3%40googlegroups.com.

Nathan Ramanathan

unread,
Apr 27, 2020, 7:57:30 PM4/27/20
to Ricardo Quesada, Unijoysticle
Yes, that is correct. 

Ricardo Quesada

unread,
Apr 27, 2020, 8:14:37 PM4/27/20
to Nathan Ramanathan, Unijoysticle
ok. thanks. I'll double check my code. thanks for the tip.

On Mon, Apr 27, 2020 at 4:57 PM Nathan Ramanathan

ricardo...@gmail.com

unread,
Nov 25, 2020, 6:11:44 PM11/25/20
to Unijoysticle
Finally I had time to test it, and what unijoysticle is doing is correct:

MSB: flash LEDs
LSB: just turn them On.

Original Switch: it ignores the flash (perhaps I'm on an old switch firmware?)
8bitdo: doesn't work, regardless of the combination
some clones: work Ok with flash (but flash is not used in unijosyticle)



Reply all
Reply to author
Forward
0 new messages