Skip to content
sbarrack edited this page Dec 22, 2019 · 9 revisions

N64

Spec Details
Voltage 3.3 V
Pullup 1 kOhm
Protocol Joybus

Devices

  • N64 Controller
    • Transfer Pak

Pinout

Soon™

Label OEM color Other color
VCC red
Data green
GND black

Commands

Transfer Pak soon™

Command Signal Resonse
Poll 0x01 Report

Polling

Soon™

Structures

typedef union {
    uint8_t raw[4];
    uint16_t raw16[2];
    uint32_t raw32;

    struct{
        uint8_t dpad : 4;
        uint8_t buttons0 : 4;
        uint8_t cpad : 4;
        uint8_t buttons1 : 4;
    };

    struct {
        uint8_t dr : 1;
        uint8_t dl : 1;
        uint8_t dd : 1;
        uint8_t du : 1;
        uint8_t start : 1;
        uint8_t z : 1;
        uint8_t b : 1;
        uint8_t a : 1;

        uint8_t cr : 1;
        uint8_t cl : 1;
        uint8_t cd : 1;
        uint8_t cu : 1;
        uint8_t r : 1;
        uint8_t l : 1;
        uint8_t : 1;
        uint8_t reset : 1;

        int8_t sx;
        int8_t sy;
    };
} N64_Report_t;

References

  1. https://sites.google.com/site/consoleprotocols/home/nintendo-joy-bus-documentation/n64-specific/standardcontroller
  2. https://sites.google.com/site/consoleprotocols/home/nintendo-joy-bus-documentation/joybus-command-list
  3. https://github.com/NicoHood/Nintendo/blob/master/src/N64.h
Clone this wiki locally