[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: 670
Joined: Tue May 30, 2017 4:00 am
Has thanked: 288 times
Been thanked: 187 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.
Game Boy Zero Controllers available @ tinkerBOY.xyz
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
nobble
Posts: 20
Joined: Tue Feb 20, 2018 4:54 pm
Has thanked: 10 times
Been thanked: 17 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: 86
Joined: Mon May 22, 2017 8:27 am
Has thanked: 16 times
Been thanked: 33 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: 14
Joined: Tue Sep 13, 2016 7:11 pm
Has thanked: 5 times
Been thanked: 4 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 2362 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.

Thomastrain00
Posts: 1
Joined: Wed Oct 10, 2018 6:03 pm

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

Post by Thomastrain00 » Thu Jan 03, 2019 12:06 am

Is there anyway to get this script to work on a Teensy LC?

holgerwahl
Posts: 1
Joined: Tue Aug 06, 2019 10:58 am

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

Post by holgerwahl » Tue Aug 06, 2019 11:01 am

Hello,
can anyone help me with the installation for the buttons ?
I do not understand what to do to use analog sticks and what are the next steps for me.

So far, the installation is completed but now i must configure the buttons, but i dont know how ?

kind regards

holger

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest