add schematic and fix 2nd joystick IO
This commit is contained in:
parent
8dee01b44f
commit
c64e63cb51
21 changed files with 54 additions and 44 deletions
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -35,13 +35,26 @@
|
||||||
#define I2C_SDA_IO 18
|
#define I2C_SDA_IO 18
|
||||||
|
|
||||||
// Analog joystick (primary) for JOY2 and 5 extra buttons
|
// Analog joystick (primary) for JOY2 and 5 extra buttons
|
||||||
|
#ifdef HAS_T4_VGA
|
||||||
|
#define PIN_JOY2_A1X A3
|
||||||
|
#define PIN_JOY2_A2Y A2
|
||||||
|
#define PIN_JOY2_BTN 14
|
||||||
|
#define PIN_KEY_USER1 22
|
||||||
|
#define PIN_KEY_USER2 23
|
||||||
|
|
||||||
|
// Second joystick
|
||||||
|
#define PIN_JOY1_BTN 34
|
||||||
|
#define PIN_JOY1_1 35 // UP
|
||||||
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
|
#else
|
||||||
#define PIN_JOY2_A1X A1
|
#define PIN_JOY2_A1X A1
|
||||||
#define PIN_JOY2_A2Y A2
|
#define PIN_JOY2_A2Y A2
|
||||||
#define PIN_JOY2_BTN 17
|
#define PIN_JOY2_BTN 17
|
||||||
#define PIN_KEY_USER1 3 //34
|
#define PIN_KEY_USER1 3 //34
|
||||||
#define PIN_KEY_USER2 4 //35
|
#define PIN_KEY_USER2 4 //35
|
||||||
//#define PIN_KEY_USER3 33
|
|
||||||
//#define PIN_KEY_USER4 39
|
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 2
|
#define PIN_JOY1_BTN 2
|
||||||
|
|
@ -49,6 +62,7 @@
|
||||||
#define PIN_JOY1_2 7 // DOWN
|
#define PIN_JOY1_2 7 // DOWN
|
||||||
#define PIN_JOY1_3 6 // RIGHT
|
#define PIN_JOY1_3 6 // RIGHT
|
||||||
#define PIN_JOY1_4 5 // LEFT
|
#define PIN_JOY1_4 5 // LEFT
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// OLD LAYOUT!!!!
|
// OLD LAYOUT!!!!
|
||||||
|
|
@ -87,7 +101,3 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
BIN
MCUME_teensy41/pcb_t41/schematic_T4VGA.png
Normal file
BIN
MCUME_teensy41/pcb_t41/schematic_T4VGA.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 148 KiB |
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
|
|
||||||
// Second joystick
|
// Second joystick
|
||||||
#define PIN_JOY1_BTN 34
|
#define PIN_JOY1_BTN 34
|
||||||
#define PIN_JOY1_1 38 // UP
|
#define PIN_JOY1_1 35 // UP
|
||||||
#define PIN_JOY1_2 36 // DOWN
|
#define PIN_JOY1_2 36 // DOWN
|
||||||
#define PIN_JOY1_3 35 // RIGHT
|
#define PIN_JOY1_3 38 // RIGHT
|
||||||
#define PIN_JOY1_4 37 // LEFT
|
#define PIN_JOY1_4 37 // LEFT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue