NES Classic Miniにいろいろなコントローラを繋いでみる

f:id:honeylab:20170114142157p:plain

適当に変換して突っ込んでやればキーボードとかつながるよね、と
コネクタの代わりにするつもりでたくさん買ってきたんだけど、とりあえず直接繋いでみると

 

[ 174.140538] input: Nintendo Clovercon - controller2 as /devices/platform/twi.2/i2c-2/2-0052/input/input6
[ 174.158326] Clovercon error: failed to set data format, value is 0
[ 174.169819] Clovercon error: controller setup failed with error 5
[ 174.181076] Clovercon info: opened controller 2, controller in error state after failed setup
[ 174.195189] Clovercon info: probed controller 2
[ 174.204667] Clovercon info: added device for controller 2
[ 175.055227] Clovercon error: failed to set data format, value is 0
[ 175.066473] Clovercon error: controller setup failed with error 5
[ 176.785226] Clovercon error: failed to set data format, value is 0
[ 176.796386] Clovercon error: controller setup failed with error 5
[ 178.473550] Clovercon info: removed controller 2
[ 178.483106] Clovercon info: removed device for controller 2

[ 187.293857] input: Nintendo Clovercon - controller2 as /devices/platform/twi.2/i2c-2/2-0052/input/input7
[ 187.311675] Clovercon error: failed to set data format, value is 1
[ 187.323083] Clovercon error: controller setup failed with error 5
[ 187.334316] Clovercon info: opened controller 2, controller in error state after failed setup
[ 187.348397] Clovercon info: probed controller 2
[ 187.357949] Clovercon info: added device for controller 2
[ 188.208787] Clovercon error: failed to set data format, value is 1
[ 188.220202] Clovercon error: controller setup failed with error 5
[ 189.938798] Clovercon error: failed to set data format, value is 1
[ 189.950118] Clovercon error: controller setup failed with error 5
[ 192.430218] Clovercon info: removed controller 2
[ 192.439832] Clovercon info: removed device for controller 2

 

見たいになって、どうやらこいつが認識するプロトコルでは通信しない、と跳ねられている用だ。
適当にソースを変更すれば何かしらつながるだろう。
cloverconのソースはGPLで公開されてるので誰でもいじれます。

ちなみに、純正ではこうなる

[ 3936.126814] input: Nintendo Clovercon - controller1 as /devices/platform/twi.1/i2c-1/1-0052/input/input8
[ 3936.144365] Clovercon info: opened controller 1, controller in OK state
[ 3936.159912] Clovercon info: probed controller 1
[ 3936.169405] Clovercon info: added device for controller 1

 

 

直接コンソール触れるキーボードがつながれば便利なんだけどなぁ
というか、多分I2Cキーボード、マウスを繋げば(≒作れば)普通に色々動くだろ。

 

追記:

純正のコントローラから帰ってくるcontroller infoは

[ 16.167399] Controller info data: 01 00 a4 20 03 01

動かない二つは下

[ 40.508637] Controller info data: 00 00 a4 20 00 00
[ 62.145529] Controller info data: 00 00 a4 20 01 01

この4バイト目を3にしてくれ、って上位から投げてるんだけど、下位がいやじゃ、って言ってるっぽいのかな。