Skip to content

john-ditto/timewalk-with-watt

 
 

Repository files navigation

Automatic Angkor Watt

--- 編集中 / now writing ---

What we need

  • マイコン本体 ATmega32u4 など example
  • micro USBケーブル example

How to use

  1. このレポジトリを clone download する
  2. lufa を lufa フォルダに入れる
  3. avr-gcc avr-dude をインストール
  4. makefile 設定する
  5. make コマンド
  6. マイコンに書き込み (dfu-programmer など)
  7. ニンテンドースイッチとマイコンを繋げる
  8. Done

Reference

Note

  • L stick の上下左右をホールド出来る
    • HOLD_CLEAR で解除するまで続く
    • duration(時間)は0でよい
  • R stick の左右をホールド出来る
    • HOLD_CAM_C で解除するまで続く
    • duration(時間)は0でよい
  • UPLEFT 他は >>325 >>416 との互換性を保つものである
  • コントローラーを認識させるのに先頭2行を捨てている
    • どうしてそうなるかは知らん
  • LOOP_START は無限ループの起点
  • UP 他はスティック操作のため入力が正確でない可能性がある
  • フォーク元の未使用コードについては削除した
    • ただし echo については既存のコマンドを再利用することを考慮して残した
    • (duration 時間が3倍速く動くのでズレるため)
  • 月末31日を1日に変更する際には時間が戻るが、次のループでリカバリするので問題ない
    • (2月についても同様)

Compiling and Flashing onto the Teensy 2.0++

Go to the Teensy website and download/install the Teensy Loader application. For Linux, follow their instructions for installing the GCC Compiler and Tools. For Windows, you will need the latest AVR toolchain from the Atmel site. See this issue and this thread on GBAtemp for more information. (Note for Mac users - the AVR MacPack is now called AVR CrossPack. If that does not work, you can try installing avr-gcc with brew.)

LUFA has been included as a git submodule, so cloning the repo like this:

git clone --recursive git@github.com:john-ditto/timewalk-with-watt.git

will put LUFA in the right directory.

Now you should be ready to rock. Open a terminal window in the timewalk-with-watt directory, type make, and hit enter to compile. If all goes well, the printout in the terminal will let you know it finished the build! Follow the directions on flashing Joystick.hex onto your Teensy, which can be found page where you downloaded the Teensy Loader application.

Thanks

Thanks snowball-thrower

Thanks to Shiny Quagsire for his Splatoon post printer and progmem for his original discovery.

Thanks to exsilium for improving the command structure, optimizing the waiting times, and handling the failure scenarios. It can now run indefinitely!

About

【剣盾】無限ワット自動化スレ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C 89.6%
  • C++ 6.0%
  • Makefile 4.4%