1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-28 03:52:15 -05:00
Arduino-USB-HID-RetroJoysti.../Tutorial/JoystickBlink.ino

13 lines
177 B
Arduino
Raw Normal View History

2016-09-06 15:03:07 -04:00
#include "Joystick2.h"
void setup() {
Joystick[0].begin(true);
}
void loop() {
Joystick[0].setButton(0, 1);
delay(1000);
Joystick[0].setButton(0, 0);
delay(1000);
}