GithubHelp home page GithubHelp logo

ponzu07 / ns-remote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mzyy94/ns-remote

0.0 0.0 0.0 789 KB

Play Nintendo Switch anyware

Home Page: https://mzyy94.com/blog/2020/05/11/play-nintendo-switch-on-smartphone/

License: GNU General Public License v3.0

HTML 3.40% Go 47.00% JavaScript 48.67% CSS 0.94%

ns-remote's Introduction

ns-remote

Play Nintendo Switch anyware

icon

Requirements

  • Nintendo Switch
  • Nintendo Switch Dock
  • HDMI Cable
  • Raspberry Pi 4 Model B
  • H2C-RPI-B01 or B101
  • USB 3.0 A to C Cable 1
  • Powered USB 3.0 Hub 1

Pi Setup

config.txt

Put these line into /boot/config.txt on Raspbian.

dtoverlay=dwc2
dtoverlay=tc358743

/etc/modules

Put these line into /etc/modules on Raspbian.

dwc2
libcomposite

H2C-RPI-B01 Board

Connect H2C-RPI-B01 board to Raspberry Pi and run the following command (every time before launch).

v4l2-ctl --set-edid=file=720P30EDID.txt
v4l2-ctl --set-dv-bt-timings query

See スマホでNintendo Switchのゲームをする - 犬アイコンのみっきー for more details.

Add Pro Controller USB Gadget with UAC Audio

Run procon_audio.sh with sudo (every time after reboot).

For more details, see links below

Build

go build

Launch

sudo ./ns-remote

Open http://raspberrypi.local:8000 on your smart phone.

Launch with specific device

Find your audio/video capture device with v4l2-ctl --list-devices and arecord -l. And specify the devices to an argument.

For example,

sudo ./ns-remote -audio hw:1,0 -video /dev/video1

Limitations

  • Wake-up is not supported yet
    • Must set up Powered-On Nintendo Switch in the Dock.

License

GPL v3

Footnotes

  1. https://mzyy94.com/blog/2020/04/17/nintendo-switch-audio-uac-gadget/#%E6%98%A0%E5%83%8F%E3%81%A8%E9%9F%B3%E5%A3%B0%E3%82%92webrtc 2

ns-remote's People

Contributors

mzyy94 avatar

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.