Skip to content

how do i make the joystick have a 16 bit range #2920

Discussion options

You must be logged in to vote

never mind found fix

#include <Adafruit_TinyUSB.h>
/*
 *  Orhan Yiğit Durmaz Copyright 2024
 *
 *  This example shows how to use custom usb
 *  descriptors with TinyUSB HID devices.   
 */

//http://janaxelson.com/hidpage.htm <-- Excellent Website for USB communication!

 //Descriptor is made with HID Decriptor Tool (DT).
 //Get it here: https://usb.org/document-library/hid-descriptor-tool
uint8_t const sixteen_bit_desc[] =
{
		    0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
		    0x09, 0x05,                    // USAGE (Joystick)
		    0xa1, 0x01,                    // COLLECTION (Application)
		    0xa1, 0x00,                    //   COLLECTION (Physical)
		    //0x85…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VedantaHatwal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant