Logitech Pedals+Shifter using One Arduino Leonardo

it is simple. there are three section: before setup(), setup() itself and loop(). combine same sections together.

#include <Joystick.h>
Joystick_ Joystick;

and

Joystick.begin();

need only once.