Go Down

Topic: Compiled Code - Adruino Micro not showing as 'Game Controller'  (Read 58 times) previous topic - next topic

Spikar

Hey All.

I need some help.
I'm a noob trying and having some issues with my diy handbrake using adruino board.

I followed this youtube video to do my own handbrake.

https://www.youtube.com/watch?v=kv0FTpRLFMY&index=11&list=PLL6esypUuH09QSFUj99ihDl3HTPiPQoFy&t=4s

I bought the following board:

https://www.ebay.com.au/itm/Arduino-Pro-Micro-ATmega32U4-5V-16MHz-Replace-ATmega328-Pro-Mini-Leonardo-USB/201823581182?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649

I compiled the following code to it:


Code: [Select]
#include <Joystick.h>

void setup()

{pinMode(A0, INPUT);
   Joystick.begin();}

const int pinToButtonMap = A0;

void loop()

{int pot = analogRead(A0);
int mapped = map(pot,0,1023,0,255);
{Joystick.setThrottle(mapped);}}


When I go to Devices and Printers - the Adruino Micro is not displayed as a Game Controller and not allowing me to access Game Properties.

Can Someone help? Not sure what I did wrong.

Appreciate it.

Thanks :)






Go Up