Skip to content

Commit

Permalink
added missing kicad libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
djtulan committed Feb 1, 2018
1 parent 0a8633d commit b7d74ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions driver_wii_classic.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "driver_wii_classic.h"

static void get_joystick_state_nunchuk(const ContollerData *cd, Joystick *joystick) {
static void get_joystick_state_wii_classic(const ContollerData *cd, Joystick *joystick) {

// see: http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Classic_Controller

Expand Down Expand Up @@ -86,10 +86,10 @@ static void get_joystick_state_nunchuk(const ContollerData *cd, Joystick *joysti
}
}

static void get_paddle_state_nunchuk(const ContollerData *cd, uint8_t *paddle) {
static void get_paddle_state_wii_classic(const ContollerData *cd, uint8_t *paddle) {
}

Driver drv_wii_classic = {
get_joystick_state_nunchuk,
get_paddle_state_nunchuk
get_joystick_state_wii_classic,
get_paddle_state_wii_classic
};
6 changes: 5 additions & 1 deletion nunchuk64.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ void init(void) {
joystick_init(); // init joystick outputs
paddle_init(); // init paddle outputs

led_switch(1); // diagnose

_delay_ms(1);

// ===================================
Expand All @@ -92,14 +94,16 @@ void init(void) {
// ===================================
// enable interrupts
// ===================================
sei();
// sei();

// ===================================
// start paddle routines
// ===================================
paddle_start();

button_init(); // init button input

led_switch(0); // diagnose
}

int main(void) {
Expand Down

0 comments on commit b7d74ea

Please sign in to comment.