Jump to content

Arduino sketch help

LazyDev

I read this article and tested the demo on my arduino:

 

http://hunt.net.nz/users/darran/weblog/15f92/Arduino_UNO_Big_Joystick_HID_firmware.html

 

Problem is, I don't know how the button presses and axis movements are been detected.

 

This is for my steering wheel and pedals.

I wouldn't go by this example code - it's badly written.

As for your question: the code does not detect any changes in button presses but simulates it.

 

This sketch is to demonstrate how to send data to a host, but does not implement any actual, physical detection of button presses.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×