Comments (3)
@pizman asked
Is there a limit how many buttons can be ON same time ?
No. You can have them all pressed simultaneously if you like.
Is Every Arduino used as a single HID Gamecontroller or is it possible to combine for example 3 Micros so i set 20 Buttons on Controller 1 Hat switches on Controller 2 Axis on Controller 3 ... BUT All this is show as ONE Gamecontroller in Windows ??
I suppose you could if you wired them together. You would only want one Arduino connecting to the PC. The others would be slaves of the "master" Arduino. You could connect them together via their serial ports/pin.
However, I think your real question is how do I get over 20 buttons connected when I only have 20 (or fewer) pins. To do that you will want to use a button or key matrix (see http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ or other Internet articles for more details); an encoder chip (e.g. http://www.ti.com/lit/ds/symlink/sn74ls348.pdf); or a shift register (https://playground.arduino.cc/Code/ShiftRegSN74HC165N).
Is it correct i can define a "ID Number" for the HID Device so i can set for example 3 Arduinos to the
SAME HID Gamecontroller ??
The ID number allows you to have the Arduino appear as multiple joysticks, not to allow multiple Arduinos to appear as a single joystick.
Hope this answers your questions,
Matt
from arduinojoysticklibrary.
Dear Matt.
At Firt THANK YOU for your incredible support.... A Reply to a question within some hours is wunderfull !
I not be advanced enough to use shift registers or to implement Matrix in the script myself ( i just beginning with the Arduino scripting) .....
So my last question is simple....
Do you see a way in the future to support YOUR System for a Arduino Board with more Pins ( Like the MEGA) ?
There we got already 52 IO Pins (Enogh for 32 Buttons) and a lot of Analog Pins to set the Axis...... So a Using of Registers and Matrix is not needed.
I Read in the TXT, that the Mega Not be able to work with your Code..... And i fully understand for your personal use the low number of Pins are Ok ( or you work with Matrix /Shift Registers)
But finaly for the "dummy" User like me.... Is it possible to make a MEGA to a Full 32 Button Game Controller with axis ?? Can you help us there ??
( I know itΒ΄s unfriendly to ask you for giving me a recommendation to a other software..... But maby you can help me )
Thanks again for your work, Sir !
from arduinojoysticklibrary.
@pizman The key to this library's flexibility and ease of use is the fact that the USB communications are done via the main ATmega32u4 microcontroller, rather than some other piece of hardware (e.g. the FTDI FT232RL for the Arduino Mega you reference). This allows the library to make the USB device look like anything you want, rather than being "hard-coded" as a serial port (I know this is not technically true, but...).
I do not currently support this (as I have not had a chance to try it out), but a fellow contributor, @sreksten, has written up some instructions on how to use the Mega and the older version of the library. These instructions can be found at Issue #37 .
Hope these comments help,
Matt
from arduinojoysticklibrary.
Related Issues (20)
- Trying to wrap my head around this HOT 1
- Lags and missing events on Raspberry Pi Zero W HOT 2
- Arduino Micro and 32 Buttons HOT 1
- Communication problem HOT 2
- Help Requested HOT 2
- How to get data from the game, such as force feedback information.
- Problem with the USB cable disconneted HOT 4
- Correct mapping in joystick tester but wrong in game
- ESP32-S3 Support HOT 2
- STM32 Support HOT 2
- Sparkfun Pro Micro support
- Lectura de 64 botones HOT 2
- uno r4 support HOT 3
- is this lib support read any data from pc
- Simulate joystick unplug
- Samd21 boards HOT 5
- Rduino nano 33IoT error HOT 1
- Add Support for Arduino MBED OS RP2040
- How to setup joystick in setup() instead of top of code HOT 4
- Mutiple Gamepads on Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinojoysticklibrary.