crazyredmachine / lufahybridfightstick Goto Github PK
View Code? Open in Web Editor NEWNintendo switch AND XInput controller for Arduino Leonardo and Pro Micro
License: GNU General Public License v3.0
Nintendo switch AND XInput controller for Arduino Leonardo and Pro Micro
License: GNU General Public License v3.0
My custom controller doesn't have L3 and R3 so I can't switch SOCD configs, but I want it to have UP+DOWN = UP, and LEFT+RIGHT = Last Input. How do I make that the default?
Hi! I was trying to make an arcade stick with this code and an Arduino pro micro, I uploaded the code and my pc recognizes the Arduino as a Xbox Controller, but when I was doing the wiring I realized that many of the pins listed in the .ino doesn't exist in this pcb, so I tried to change the pins in the .ino file but when I tried to upload the code again I noticed that the COM port that initially worked to upload the code dissapeared, so I can't upload the changes anymore. Do I say goodbye to my Arduino? Thanks in advance for any help :)
how to set it as Dpad mode only ?
Howdy!
I'm also a fan of converting controllers. My specific way of going about it was a little different, though. I made a board to sit between a SNES/NES/Wii Classic Controller (with the Nunchuk connector, via I2C) and a Switch/PC. My original solution was to have the chip reflash itself with miniboot on every startup, but I found your project and was really impressed! You've managed to solve a lot of issues we've both run into (LUFA and Arduino mingling and mixing the XInput and Switch descriptors)!
I was able to design a whole new PCB around the space savings I get, and they arrived today. But, I realized I should probably ask for an "OK" since you don't have a license in the repository (we might have to stick to GPLv3 due to bootsector/XInputPadMicro using it).
My repository is
https://github.com/nullstalgia/NullWiiCon
My tindie page for them is
https://www.tindie.com/products/nullstalgia/nullwiicon/
I don't have the newest revision up on either of those yet, but I will very soon. (and I haven't sold a single one on Tindie yet. I was unhappy with the last PCBs so I kept the stock at zero)
Here's a couple pics of the newest board
Hello,
Would it be possible to add PS4/PS5 support by using the same method that made the Switch mode work?
IE, all the device descriptor stuff plus adding Direct Input support?
Hi! i wanted to know if there is a way to check the rumble/force feedback from the usb port and the reports? I wanted to be able to launch an action from that check. I'm a beginner in this field so i wanted to ask for advice on the feasability of this... Thank you for your time!
I'm using a sparkfun qwic pro micro and the upload worked but I got the pinout wrong for my particular project and I noticed there's no COM port to upload new code anymore. How do I flash new code into the board?
Which app do I enter (persistent calibration mode) and how do I do it
I've set my SOCD to LAST_INPUT and I'm having a problem where if I press and hold Left, then down, then right, and release down, it goes back to left instead of continuing on to right. Is there an easy way to fix this? The motion I'd like to do is hold left and then tap down and then right and get a half circle back to forward motion for Guilty Gear Strive
which are these pins for one joystick or for 2? If it is for 2 which is for left and right?
#ifdef WITH_ANALOG
#define PIN_LANALOGX A0
#define PIN_LANALOGY A1
#define PIN_RANALOGX A2
#define PIN_RANALOGY A3
Im trying to figure out if its possible to map each dpad button to a separate pin. I can only find the up button.
Hi.
I would like to know how to reflash the arduino pro micro with the LUFAHybridFightstick?
Because I have edited the pinout to make it work for my configuration as a test and didn't know if I could flash it again to default or whatnot.
Hi, I have an error saying Error compiling for board Arduino Leonardo (LUFA) and I don't understand what is wrong because I am shaw I followed the orders
I was hoping you could point out to me the functions that I could use to trigger a button programmatically. I’ve attempted a few ways I thought would work but to no avail.
My background is in ObjC so possibly it’s my lack of understanding in some key differences that’s holding me back.
I am looking for the ability to trigger the action of a button pressed without the need for a physical button. For example when another condition is met within an if statement that’s in the main loop.
Hello, I've tried your code after trying the original one from fluffymadness. Just like his, your code works like a charm when I connect my controller to my PC, and even on my android phone with a USB adapter. But no matter what I do, my friend's god damn switch won't recognize the controller. I've tried it on both usbs in the docker and the small USB in the switch, using the same adapter that I used to connect to my phone, but nothing. The LED on the board turns on, so it's being powered, but it's not being recognized as a controller.
I'm using a Pro Micro board, so I'm wondering if the problem is that this board in particular isn't recognized on the switch? His switch is updated to the latest firmware/version, and the option to use USB pro controllers or something like that is turned on as well. And in your code in particular I've selected the POKKEN CONTROLLER on my PC before connecting it to the switch, just in case. Even tested to see if all buttons are being recognized. The only change I had to do was with the order/mapping of the pins, to match my board and the order that I used when I tried with fluffymadness' version. I've also tried using both "Arduino Micro(LUFA)" and "Arduino Leonardo(LUFA)" options, just in case... Both worked normally on my PC, but no changes on the switch.
Just came across this repo while doing some research. I'm receiving a couple of Pro Micros later today, so I want to give this code a try, even though I'm a total newbie at arduinos (literally my first time).
I seem to grasp the concept pretty well, and it looks pretty easy to pull off, but I'm having trouble figuring out which pin is the L3/R3 mentioned in the README. Looks like the SOCD modes are triggered by doing a combination of L3+R3+something else, but I can't really find my answer in the code.
Also, this part looks a bit confusing to me:
LUFAHybridFightstick/LUFAHybridFightstick.ino
Lines 13 to 15 in ef6d77c
Does that mean that it will always do SOCD cleaning regardless of on-the-fly configuration being on or off?
Hello again, here I am, assembling the lever (copy of Sanwa) with the magnetic sensor (MLX90333), due to the position of the sensor, when I move the physical lever up, the output signal is down, that is, I need to invert the Y axis (and I don't know how to do it.). The horizontal analog or X axis is correct.
Sorry for the inconvenience, I'm very new to Arduino.
Thank you. Greetings!
(translated by Google)
Hello, I enabled the analogs, I connected a magnetic sensor (MLX90333) that replaces the potentiometers; I connected it to pins A0 and A1. The problem is that the sensor moves the left and right lever at the same time. I would only need the left lever. Thank you
(I used Google translator, I hope you can understand me)
I assumed since the Elite C was based on a pro micro that it would work with this firmware. Everytime I try to use it, the bumpers and triggers don't work.
using the pcb from this project
for the joystick do I just wire in the x axis and y axis or do I need to wire the 5v for the joystick and wire the ground for the buttons?
Hi!
Would be possible to add support for the BluePill board?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.