#include <USBComposite.h>

USBHID HID;
HIDJoystick Joystick(HID);

void setup() {
  HID.begin(HID_JOYSTICK);
  while (!USBComposite);
}

void loop() {
  Joystick.X(0);
  delay(500);
  Joystick.X(1023);
  delay(500);
}

