mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-12-12 02:32:20 -05:00
Create JoystickBlink.ino
This commit is contained in:
parent
478c65de36
commit
19167f5363
12
Tutorial/JoystickBlink.ino
Normal file
12
Tutorial/JoystickBlink.ino
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user