Giter Club home page Giter Club logo

rascon_ns's Introduction

RasCon Ver.1.2.1

蓝牙连接Nintendo Switch,并可通过网页控制和使用脚本与amiibo

基于开源项目 joycontrol

forks stars license

中文 | 日本語 | ENGLISH

界面



运行环境

  • python 3.7.3
  • bluetoothd 5.50
  • apache2 2.4.38
  • flask 1.0.2

raspi3b+(rasbian)下成功运行

初次使用

1.需要将joycontrol项目的joycontrol文件夹复制到该项目目录下

sudo git clone https://github.com/SkyoKen/RasCon_NS.git

sudo git clone https://github.com/mart1nro/joycontrol.git

sudo cp -r joycontrol/joycontrol RasCon_NS/

2.安装所需要的库

sudo apt install python3-dbus libhidapi-hidraw0 apache2

sudo pip3 install dbus-python flask hid aioconsole crc8

快速运行

1.打开终端,运行命令

sudo python3 web.py

2.浏览器打开 树莓派ip地址:5000 (网页操作界面)

3.switch的手柄界面,进入手柄搜索模式

4.打开另一个终端,运行命令

sudo python3 run.py

5.连接上后,即可用网页进行操作

参考用脚本

https://github.com/SkyoKen/RasCon_NS/releases

可能遇到的问题

Q:找不到hci0

A:确认hci0是否存在,运行命令hciconfig

(无法正常使用的话换个系统也许就好了,我树莓派用ubuntu18.04和ubuntu mate都无法启动hci0

参考

万恶之源 Switch-Fightstick

蓝牙模拟ns手柄(可模拟amiibo) joycontrol

蓝牙模拟ns手柄实现剑盾自动化 poke_auto_joy

小白也能写的自动化脚本 EasyCon(伊机控)

rascon_ns's People

Contributors

dentedghost avatar skyoken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rascon_ns's Issues

普通按键支持按下N秒

-- line 9
from joycontrol.controller_state import button_push, button_press, button_release, ControllerState
-- line 25
self.available_sticks = {'ls','rs','btn'}
-- line 167
elif side == 'btn':
await button_press(self.controller_state, direction)
await asyncio.sleep(val/1000)
await button_release(self.controller_state, direction)

RUN Script Demo
AMIIBO 8Bit-Mario30thAnniversary.bin
1000
BTN RIGHT,3000

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.