Difference between revisions of "Phenix Laser Gun"
From MSX Game Library
m (Aoineko moved page Phenix Light Gun to Phenix Laser Gun) |
|||
| Line 1: | Line 1: | ||
| − | == Idle mode == | + | The Phenix Laser Gun is an MSX light gun peripheral that is unique in that it works on modern LCD or LED screens without requiring a test at a specific point in the frame. |
| + | |||
| + | == Prototype 1 == | ||
| + | The first version focuses on detecting the light intensity at a single point on the screen for a modern display. | ||
| + | |||
| + | === Idle mode === | ||
This is the default mode at startup. In this mode, the lightgun always return constant values. | This is the default mode at startup. In this mode, the lightgun always return constant values. | ||
| Line 12: | Line 17: | ||
If any trigger is pressed, the state changes to Active mode. | If any trigger is pressed, the state changes to Active mode. | ||
| − | == Active mode == | + | === Active mode === |
This is the normal mode to communicate between a game and the lightgun. | This is the normal mode to communicate between a game and the lightgun. | ||
| Line 20: | Line 25: | ||
x x B A L3 L2 L1 L0 | x x B A L3 L2 L1 L0 | ||
│ │ └──┴──┴──┴── Light intensity (4-bit: [0:15]; 0: darker, 15: lighter) | │ │ └──┴──┴──┴── Light intensity (4-bit: [0:15]; 0: darker, 15: lighter) | ||
| + | │ └────────────── Trigger A (0: pressed, 1: released) | ||
| + | └───────────────── Trigger B (0: pressed, 1: released) | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | == Prototype 2 == | ||
| + | The final version should be able to detect 7 colors on the screen, allowing 7 areas of the screen to be tested at once. | ||
| + | |||
| + | Return value: | ||
| + | <pre> | ||
| + | [ 7 6 5 4 3 2 1 0 ] | ||
| + | x x TB TA x CR CG CB | ||
| + | │ │ └──┴──┴── Light color (0: black, 1: blue ... 6: yellow, 7: white) | ||
│ └────────────── Trigger A (0: pressed, 1: released) | │ └────────────── Trigger A (0: pressed, 1: released) | ||
└───────────────── Trigger B (0: pressed, 1: released) | └───────────────── Trigger B (0: pressed, 1: released) | ||
</pre> | </pre> | ||
Revision as of 16:29, 25 November 2026
The Phenix Laser Gun is an MSX light gun peripheral that is unique in that it works on modern LCD or LED screens without requiring a test at a specific point in the frame.
Prototype 1
The first version focuses on detecting the light intensity at a single point on the screen for a modern display.
Idle mode
This is the default mode at startup. In this mode, the lightgun always return constant values.
Return value:
- Pin 8 is HIGH: 0x3F,
- Pin 8 is LOW: 0x0F.
Those values have been chosed to:
- allow MSX-HID protocol to detect the Phenix lightgun with the fingerprint: 0x0F,0x3F,0x0F,
- prevent lightgun from triggering joystick inputs that could interfere with the current program.
If any trigger is pressed, the state changes to Active mode.
Active mode
This is the normal mode to communicate between a game and the lightgun.
Return value:
[ 7 6 5 4 3 2 1 0 ]
x x B A L3 L2 L1 L0
│ │ └──┴──┴──┴── Light intensity (4-bit: [0:15]; 0: darker, 15: lighter)
│ └────────────── Trigger A (0: pressed, 1: released)
└───────────────── Trigger B (0: pressed, 1: released)
Prototype 2
The final version should be able to detect 7 colors on the screen, allowing 7 areas of the screen to be tested at once.
Return value:
[ 7 6 5 4 3 2 1 0 ]
x x TB TA x CR CG CB
│ │ └──┴──┴── Light color (0: black, 1: blue ... 6: yellow, 7: white)
│ └────────────── Trigger A (0: pressed, 1: released)
└───────────────── Trigger B (0: pressed, 1: released)