[NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Various user-contributed guides for hardware-related things
User avatar
tinkerBOY
Posts: 562
Joined: Tue May 30, 2017 4:00 am
Has thanked: 265 times
Been thanked: 163 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by tinkerBOY » Wed Mar 14, 2018 1:36 am

nobble wrote:
Wed Mar 14, 2018 12:54 am
I'm trying to program a Pro Micro with Sota's code for dual joysticks. I bought the generic blue board version and added all the extra files needed, but it wont pick up in Arduino. If anyone has any direction, I would really appreciate it. I kept getting COM errors and the lovely 'JoyState_t' does not name a type Error. I'm on Arduino 1.0.5r2 like it says is needed..
You can try this link on how to program the Pro Micro as a USB controller.

User avatar
nobble
Posts: 17
Joined: Tue Feb 20, 2018 4:54 pm
Has thanked: 10 times
Been thanked: 12 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by nobble » Thu Mar 29, 2018 10:06 pm

tinkerBOY wrote:
Wed Mar 14, 2018 1:36 am
nobble wrote:
Wed Mar 14, 2018 12:54 am
I'm trying to program a Pro Micro with Sota's code for dual joysticks. I bought the generic blue board version and added all the extra files needed, but it wont pick up in Arduino. If anyone has any direction, I would really appreciate it. I kept getting COM errors and the lovely 'JoyState_t' does not name a type Error. I'm on Arduino 1.0.5r2 like it says is needed..
You can try this link on how to program the Pro Micro as a USB controller.
Got it now! I had issues getting the serial port working. And I guess my generic blue colored Pro Micro had to be selected as "Arduino Leonardo" in the Arduino program.

Many thanks!

User avatar
JujuPi
Posts: 51
Joined: Mon Nov 21, 2016 2:08 am
Has thanked: 8 times
Been thanked: 16 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by JujuPi » Tue Apr 24, 2018 8:50 am

Is anyone happy to edit his code and add a debouncing delay please? I keep getting issues with multiple presses and its causing my Pi problems :l

User avatar
goosewerks
Posts: 85
Joined: Mon May 22, 2017 8:27 am
Has thanked: 16 times
Been thanked: 30 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by goosewerks » Wed Apr 25, 2018 7:34 pm

Crashdummy wrote:
Tue Jan 23, 2018 8:34 am
As for double/tripple presses:
Regarding Softwareproblems you can either use another joystick-Library ( more difficult ), but the easier Method would be to add a Delay at the end of your Method.

Code: Select all

Delay(100); // This will add a 100ms ( 1/10 second ) Delay
Here's the delay. Add it to the end.

sigma84
Posts: 2
Joined: Thu Nov 09, 2017 11:01 am

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by sigma84 » Tue May 15, 2018 1:01 pm

Hi, thx a lot for a great guide. :)
Im just wondering. I made everything listed like in your guide but i dont understand how I have to configure the pins in the script.
I wired my pins :

Pin A : TX0
Pin B : RX1
Pin Y : 3
Pin X : 2
Pin Start : 4
Pin Select : 5
Pin Dpad right : 9
Pin Dpad down : 7
Pin Dpad up : 6
Pin Dpad left : 8
Pin R1 : 14
Pin L1: 10

What should I change exactly in the Button configuration.

Thx for help :)

xfx9500
Posts: 8
Joined: Sun May 06, 2018 12:11 pm
Has thanked: 1 time

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by xfx9500 » Sat Jun 30, 2018 3:18 pm

all the pictures are offline :(
and i am unable to compile the sample sketch from sota,s :( :( :( :(

alternative sample sketch for two analog sticks ? + diagram ?

drifftr6x
Posts: 12
Joined: Tue Sep 13, 2016 7:11 pm
Has thanked: 3 times
Been thanked: 3 times

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by drifftr6x » Tue Aug 21, 2018 12:56 am

same here, need the wiring diagram. can some one please help. thanks so much.

onilx
Posts: 6
Joined: Sat May 27, 2017 8:50 am
Location: Tokyo, Japan
Been thanked: 3 times
Contact:

Re: [NEW VERSION] Sota's 14 buttons + optional up to 2 analog sticks guide for a Leonardo Pro Micro (Teensy alternative)

Post by onilx » Mon Oct 08, 2018 9:14 pm

I love this, it works amazingly well with RetroPie. But when I was testing it’s output against an iBUFFALO SNES-style gamepad, I noticed the signals were coming out completely differently. I went in and reassigned the numbers to make it resemble a similar output but this was the best I could do. Any thoughts?
2D9F723F-469B-4205-AEBD-C7C1588EBD65.png
2D9F723F-469B-4205-AEBD-C7C1588EBD65.png (236.08 KiB) Viewed 1401 times
P.S. - this is for a WS usb controller, so I mapped the second D pad to look like the shoulder buttons, hence there being two sets of D pads.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests