pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/GitMoDu/NintendoControllerReader

s.com/assets/github-cf976967feea1e66.css" /> GitHub - GitMoDu/NintendoControllerReader: Library for reading Nintendo game controllers on Arduino boards, targetting STM32F1/Maple Mini. · GitHub
Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

GitMoDu/NintendoControllerReader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Deprecated

Archival is preserved for backwards compatibility of existing projects.

Replacement library JoybusOverUart.

NintendoControllerReader

Library for reading Nintendo game controllers on Arduino boards, targeted at STM32F1/Maple Mini boards.

JoyBus Over Serial

Based on the work published by qwertymodo (http://www.qwertymodo.com/hardware-projects/n64/n64-controller), this alternate driver uses a serial port, a diode and a resistor to emulate the controllers' JoyBus protocol using a hacked serial port.

(Ab)uses Serial Port to emulate the OneWire-like protocol of JoyBus.

In order to wire this up, we need to tie the UART's Rx and Tx pins together using a Schottky diode, as shown here (https://github.com/dword1511/onewire-over-uart).

Any Arduino compatible MCU with fast enough serial should work with this library, Hardware required/used is a serial port capable of 1250000 bps baud-rate. That does not include the AVR line of Arduinos, sadly.

Interrupts aren't blocked or used.

Bit Banged JoyBus

Low level bit bang protocol forked from GameControllersSTM32 (https://github.com/arpruss/GameControllersSTM32).

Stops interrupts for the duration of the protocol data exchange (~200us for N64, ~400us for GC).

Only used as a fallback solution where serial isn't available.

Supported controllers:

  • Nintendo 64
  • GameCube

Usage

SerialJoyN64Controller Controller(&Serial3); (JoyBusOverSerial Version)

BitBangN64Controller Controller(CONTROLLER_PIN); (BitBang Version)

Controller.Poll(); (Request data poll)

delay(1) (MCU can do other things while the serial port fills up with the response)

bool Controller.Read(); (Returns true on poll success, tries to reconnect controller on fail)

Controller.Data //(N64Data_t); (Raw controller data is public)

About

Library for reading Nintendo game controllers on Arduino boards, targetting STM32F1/Maple Mini.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy