mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-12-23 07:58:53 -05:00
13 lines
177 B
C++
13 lines
177 B
C++
#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);
|
|
}
|