Skip to content

yyya-nico/DigistumpNunchuk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DigistumpNunchuk

このフォークは自分が使いやすいと思うような改変をしています。

  • 動きをなめらかに
  • スクロールすることを考慮
  • 横スクロールもできるように(HIDディスクリプタを編集)

ヘッダーファイル類も編集することになったので付属。

以下はフォーク元の記述です。

====

I2C通信を使用するヌンチャク型コントローラをマウス代わりに使用します

Description

以下のような特徴があります

  • 標準的なHIDクラスに準拠したデバイスとして使用できる(=PCに接続して自動的に使用できる状態になる)

  • 部品を入手しやすい

    • ヌンチャク型コントローラはリサイクルショップで購入しやすい
    • Digisparkも1個400円くらいで購入できる

Requirement

  • ヌンチャク型コントローラ
  • Digispark

Usage

  1. PCにデバイスドライバをインストールします
     ※ダウンロードしたZIPファイルを解凍し、32ビット環境なら「DPinst.exe」、64ビット環境なら「DPinst64.exe」を実行します。

  2. コントローラとdigisparkを結線します(以下の図を参照)

  1. Arduinoでdigisparkにソフトウェアを書き込みします

  2. 以下のようにしてマウスのようにコントローラを使用できます
     スティック:カーソル移動
     Zボタン:右クリック
     Cボタン:左クリック

    ※起動時に現在のスティック位置を基準とするため、起動するまではしばらくスティックを放しておく必要がある。

Licence

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Releases

No releases published

Packages

No packages published

Languages

  • C 50.2%
  • C++ 49.8%