examples - marcosassis/gamepaduino GitHub Wiki

some examples [of choices] using examples [of minimalist codes] =]

for all examples, download and install (unzip into arduino install directory /libraries): gamepad

and then reopen arduino, examples -> gamepad -> __ <-

N64

N64 original controller (protocol) read by an arduino compatible board

must be 16MHz necessarily, and compatible with AVR assembly instructions used

examples: (click to expand)
  • [sparkfun] pro micro board (it's "almost an arduino"): version: 16MHz 5V
    • (when i say my pro micro, you know, i don't have other kind)
    • refer to sparkfun
      • lot's of vendors around the world and generic clones (it's open hardware)
      • (for buying i recommend you do your search, in your context, for best options. be like julius, ever.)
  • to be tested with gamepad library:
    • arduino pro mini board (this is ""official"" arduino): also version: 16MHz 5V
      • this also seems to be compatible
      • (must be, before i have pro micro, i used other codes in mine and worked, i based this interface on these)
    • uno, mega, whatever
    • ATtiny85 it's a really charming TODO option and sure it'll be done
    • (i have to test)

lean code example

#include "N64_gamepad_usb_single.h"
const uint8_t N64_PIN = 3;
N64_hid p1(1, N64_PIN);
void setup() {}
void loop() {
  p1.read();
}

explanation

as minimalist as this can be (3 commands necessary: 1 include, 1 object creation, 1 read command read in loop)

this IS a N64_gamepad USB HID -joystick_adapter, i.e. a device that you programmed to command and read N64 controller

  • arduino leonardo board (this is ""official"" arduino) too seems to be compatible
    • does any friend would like to test this??
    • look at
⚠️ **GitHub.com Fallback** ⚠️