LUFA Library  210130

Board specific joystick driver header for the Fletchtronics BUMBLEB. More...

Macros

#define JOY_DOWN   (1 << 1)
 
#define JOY_LEFT   (1 << 2)
 
#define JOY_PRESS   (1 << 4)
 
#define JOY_RIGHT   (1 << 0)
 
#define JOY_UP   (1 << 3)
 

Detailed Description

Board specific joystick driver header for the Fletchtronics BUMBLEB (http://fletchtronics.net/bumble-b). The BUMBLEB third-party board does not include any on-board peripherals, but does have an officially recommended external peripheral layout for buttons, LEDs and a Joystick.

Left Port PinUp Port PinRight Port PinDown Port PinPress Port Pin
PORTD.2PORTD.3PORTD.0PORTD.1PORTD.4

Macro Definition Documentation

◆ JOY_DOWN

#define JOY_DOWN   (1 << 1)

Mask for the joystick being pushed in the downward direction.

◆ JOY_LEFT

#define JOY_LEFT   (1 << 2)

Mask for the joystick being pushed in the left direction.

◆ JOY_PRESS

#define JOY_PRESS   (1 << 4)

Mask for the joystick being pushed inward.

◆ JOY_RIGHT

#define JOY_RIGHT   (1 << 0)

Mask for the joystick being pushed in the right direction.

◆ JOY_UP

#define JOY_UP   (1 << 3)

Mask for the joystick being pushed in the upward direction.