Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Arduino library to get state of the buttons of a SNES controller.
C++ Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples/SNESToSerial
README.markdown
SNES.cpp
SNES.h

README.markdown

SNES for Arduino

Introduction

This simple library just gets buttons' state information from a SNES controller.

The code was based on a function I've created for explaining how a SNES controller works for a talk I (Álvaro Justen) gave at the Latino-american Free/Libre Software Conference - Latinoware, in 2010. There is a blog post about this function (in Portuguese).

SNES controller

Usage

For now, look at the pins' connections below and upload one example from the Arduino IDE. Enjoy!

Pins' Connections

When you call SNES.begin() you need to pass as parameters the pins you connected the clock, strobe and data pins (in this order).

See the pins of the connector in the SNES controller below, connected to whatever digital port you want and enjoy!

SNES connector pinout

Why Not NESpad/SNESpad?

There is a library called NESpad/SNESpad, but it does not work with my controller, so I've searched and found a detailed specification about how the SNES controller sends data to the SNES console and implemented it.

Something went wrong with that request. Please try again.