AlanChatham / UnoJoy

UnoJoy! allows you to easily turn an Arduino Uno (or Mega or Leonardo) into a PS3-compatible USB game controller
GNU General Public License v3.0
482 stars 130 forks source link

Is it possible to send data from the PC and handle it in the arduino? #24

Open ngentile opened 5 years ago

ngentile commented 5 years ago

Hi @AlanChatham @Erbonator3000

Im working on a personal project to build a home made autopilot quadrant for x-plane. This is a good approach considering that I just need to map the buttons to a profile in x-plane. This simplify the coding for the inputs if use a regular COM serial port communication (simplify a lot)

The things is that I'm having 2 display TM1637 that need to be update it with the values that I can get from the sim but I need to send it back to the Arduino to update the displays.

Suggestion are wellcome!

Thanks!

AlanChatham commented 5 years ago

So, are you using UnoJoy! as an HID game controller, or using only part of it to send serial data to your program? If you're using it as a game controller, then sending data back to it is going to be super involved - either messing with the USB code to add serial port functionality, or figuring out some kind of hacked-together force feedback solution that I don't have any clue how you might work with that. I think the best solution might be to have a separate Arduino for your display stuff?