Coder Social home page Coder Social logo

tinyntendo's Introduction

tinyntendo

ATtiny based Nintendo to USB adapter firmware to be used with Digispark boards (you can also make your own). See Digispark product page for schematics and other info, code for controller wiring.

Project is set up for the USBasp programmer. Because it's cheap and brilliant, that's why.

Let's assume you have avrdude and avr-gcc working on your machine.

To compile for NES controllers:

$ make clean && make nes

To compile for SNES controllers:

$ make clean && make snes

... after compiling you can either:

A) flash and set fuses with a USBasp

This overwrites the bootloader on the Digispark boards, but you'll get a bog standard HID device.

$ make install

... or:

B) upload with the factory bootloader on Digispark boards

This way you don't need an AVR programmer, but:

  • you'll have to wait roughly 5 seconds every time after plugging the controller in
  • the controller will probably be less compatible with devices, since the bootloader runs before the device switches into HID mode
  • you might have trouble uploading with some laptops, USB hubs and/or cables

But hey, upgrading firmware is easier using a bootloader.

If you're on linux/osx and have the micronucleus command line executable symlinked to /usr/local/bin, just run:

$ sudo make upload

... and plug the thing in when prompted.

You can also mess with UDEV rules to avoid sudoing.

If you didn't do the symlinking or you're running windows, just use the micronucleus command line utility any way you usually would, and upload main.hex

Don't forget to run this step as root!

todo

  • other controllers? N64 and GC would require some Digispark modding.
  • smarter make wizardry and project setup

tinyntendo's People

Contributors

kunaakos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tinyntendo's Issues

Is this what i am looking for??

I don't know if this is what I am looking for but I want to use my digispark as an automatic turbo controller for the switch, is this what I need to do this??? i have made a Reddit post if you want a bit more details

Btw is it possible to use this with windows? if not I do have a ubuntu dual boot

if this is what I am looking for I would like instructions about how to do this

It has been tested under Windows ?

Hi,

I'm unable to use it under Windows.
It cannot detect it has a valid HID device.
I've tested it under Win7 x64, Win7 32bit and WinXp 32.
Maybe a hid descriptor is missing ?
Thank you,
Alessio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.