LUFA Library

Board specific joystick driver header for the Atmel STK526. More...

Macros

#define JOY_DOWN   (1 << 7)
 
#define JOY_LEFT   (1 << 4)
 
#define JOY_PRESS   (1 << 0)
 
#define JOY_RIGHT   (1 << 6)
 
#define JOY_UP   (1 << 5)
 

Detailed Description

Board specific joystick driver header for the Atmel STK526.

Left Port PinUp Port PinRight Port PinDown Port PinPress Port Pin
PORTB.4PORTB.5PORTB.6PORTB.7PORTB.0

Macro Definition Documentation

◆ JOY_DOWN

#define JOY_DOWN   (1 << 7)

Mask for the joystick being pushed in the downward direction.

◆ JOY_LEFT

#define JOY_LEFT   (1 << 4)

Mask for the joystick being pushed in the left direction.

◆ JOY_PRESS

#define JOY_PRESS   (1 << 0)

Mask for the joystick being pushed inward.

◆ JOY_RIGHT

#define JOY_RIGHT   (1 << 6)

Mask for the joystick being pushed in the right direction.

◆ JOY_UP

#define JOY_UP   (1 << 5)

Mask for the joystick being pushed in the upward direction.