pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
347 B
15 lines
347 B
12 years ago
|
#include <avr/io.h>
|
||
|
#include "../makros.h"
|
||
|
#include "../config.h"
|
||
|
|
||
|
#define HC165_JOYSTICK_DDR_LOAD DDR(HC165_JOYSTICK_PORT_LOAD)
|
||
|
volatile volatile uint8_t hc165_joystick_val;
|
||
|
// unsigned char waitForFire;
|
||
|
|
||
|
void joy_init(){
|
||
|
HC165_JOYSTICK_PORT_LOAD |= (1<<HC165_JOYSTICK_BIT_LOAD);
|
||
|
HC165_JOYSTICK_DDR_LOAD |= (1<<HC165_JOYSTICK_BIT_LOAD);
|
||
|
}
|
||
|
|
||
|
|