AlanFord / Logitech_F310_and_Arduino

USB HID driver that permits using the Logitech F310 gamepad with an Arduino
MIT License
12 stars 4 forks source link

Button controls #1

Open rg4444 opened 5 years ago

rg4444 commented 5 years ago

Great job, thank you! It saved a lot of time to get F310 working on Arduino USB shield. You are using RT button and LT button as buttons, however in our application they should be used as triggers with variable values. Any workaround to achieve it while keeping D mode?

AlanFord commented 5 years ago

I did this work to help out a local FIRST Robotics team. They didn't really need D mode, so I never looked into it. As the nights get longer this winter, I'll take a crack at it.

rg4444 commented 5 years ago

Thank you! Great if you could do it. So we could as module https://github.com/WoodpeckerCar for http://woodpecker.mobi/. BTW it is a big robotic platform of cars using mostly Arduino controllers. Feel free to use it in projects

Lukiedikie commented 4 years ago

Hi my name is Luqman from Malaysia and i dont have any background in coding. I try uploaded your code to my Arduino Uno but when pressed the button oh my F310 gamepad nothing show up in the serial monitor i hope any of you might assist me. Thanks in advance

AlanFord commented 4 years ago

@Lukiedikie , only two things come to mind. First make sure the little slide on the bottom of the controller is set to "D" and not "X". Second, make sure your serial monitor is set to a baud rate of 115,200. (Or change the speed in the demo program to match the baud rate of your serial monitor.)

Lukiedikie commented 4 years ago

Thanks for you feedback Sir i really appreciate it. Yes i had changed the controller to "D" as well as set both baud rate to 115200. But when i pressed X or Y including the right and left stick nothing showed up as shown in the serial monitor below.

[image: image.png]

On Sat, May 2, 2020 at 1:44 AM Alan Ford notifications@github.com wrote:

@Lukiedikie https://github.com/Lukiedikie , only two things come to mind. First make sure the little slide on the bottom of the controller is set to "D" and not "X". Second, make sure your serial monitor is set to a baud rate of 115,200. (Or change the speed in the demo program to match the baud rate of your serial monitor.)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AlanFord/Logitech_F310_and_Arduino/issues/1#issuecomment-622488659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN22WLG2JLBQG65HV2XSXFTRPMC73ANCNFSM4I4BPHXQ .

-- Assalamualaikum & Good Day,

Thank you.