Giter Club home page Giter Club logo

splatoon-3-printer's Introduction

splatoon-3-printer

フォーク元のリポジトリをスプラトゥーン3でも動くようにしました。
使用は自己責任でお願いします。

動作検証

必要なもの

  • Aruduino UNO R3
  • ジャンパーピン
  • PC(確認時はArch Linux)

手順

準備

Linux
  • avr-libc
  • avr-gcc
    をインストールしておく ArchLinuxなら
yay -S avr-libc avr-gcc
Python
  • pilow
    をインストール
pip3 install pillow

ビルド

  1. ローカルのPCにこのリポジトリをcloneする。
    1. [email protected]:Explosive6363/splatoon-3-printer.git
  2. 内包されているsubmoduleを最新化する
    1. cd splatoon-3-printer
    2. git submodule update --init --recursive
  3. 320x120サイズのpng形式の画像を用意する。
  4. 用意した画像をコンバートする
    1. python3 png2c.py -p {用意した画像のpath}
  5. コンパイル
    1. make

Arduinoにバイナリを焼く

  1. 画像の赤枠部分のピンをジャンプさせる
    1. PXL_20220914_060833015
  2. PCに接続する。
  3. 1でジャンプさせたものを取り外す。
  4. コマンド実行
    1. sudo dfu-programmer atmega16u2 erase
    2. sudo dfu-programmer atmega16u2 flash Joystick.hex
    3. sudo dfu-programmer atmega16u2 reset

使用

  1. ゲーム内でポストに話しかける
  2. 「投稿する」を押す
  3. Lボタンを一回押す
  4. switchのドックにArduinoを接続する
  5. 完成を待つ うまく行かない場合は「仕様」の手順を何回かやり直してみてください。

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.