mirror of https://github.com/falsovsky/arduino.git
Document a little moar
This commit is contained in:
parent
9bdd4bce6a
commit
ac4e8f2496
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Based on https://github.com/njguibert/NesJoystickArduino/
|
Based on https://github.com/njguibert/NesJoystickArduino/
|
||||||
Adapted for SNES
|
Adapted for SNES with info from http://www.gamefaqs.com/snes/916396-super-nintendo/faqs/5395
|
||||||
|
|
||||||
Snes Controller - Arduino
|
Snes Controller - Arduino
|
||||||
White 5V - 5V
|
White 5V - 5V
|
||||||
|
@ -73,6 +73,28 @@ word controllerRead() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
|
/*
|
||||||
|
Clock Cycle Button Reported
|
||||||
|
=========== ===============
|
||||||
|
1 B
|
||||||
|
2 Y
|
||||||
|
3 Select
|
||||||
|
4 Start
|
||||||
|
5 Up on joypad
|
||||||
|
6 Down on joypad
|
||||||
|
7 Left on joypad
|
||||||
|
8 Right on joypad
|
||||||
|
9 A
|
||||||
|
10 X
|
||||||
|
11 L
|
||||||
|
12 R
|
||||||
|
13 none (always high)
|
||||||
|
14 none (always high)
|
||||||
|
15 none (always high)
|
||||||
|
16 none (always high)
|
||||||
|
*/
|
||||||
|
|
||||||
word controller_data = controllerRead();
|
word controller_data = controllerRead();
|
||||||
|
|
||||||
// B - BIT 16
|
// B - BIT 16
|
||||||
|
|
Loading…
Reference in New Issue