Phenix Laser Gun
From MSX Game Library
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 light gun 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 light gun with the fingerprint: 0x0F,0x3F,0x0F,
- prevent light gun 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 light gun.
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)