Difference between revisions of "Phenix Laser Gun"

From MSX Game Library

(Created page with "== 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 v...")
 
 
(6 intermediate revisions by the same user not shown)
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.
−
This is the default mode at startup. In this mode, the lightgun always return constant values.
+
 
 +
== 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:
 
Return value:
 +
* Pin 8 is HIGH: 0x3F,
 +
* Pin 8 is LOW: 0x0F.
  
−
Pin 8 is HIGH: 0x3F,
 
−
Pin 8 is LOW: 0x0F.
 
 
Those values have been chosed to:
 
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.
  
−
allow MSX-HID protocol to detect the Phenix lightgun with the fingerprint: 0x0F,0x3F,0x0F,
+
If any trigger is pressed, the state changes to Active mode.
−
prevent lightgun from triggering joystick inputs that could interfere with the current program.
 
  
−
== 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 light gun.
  
 
Return value:
 
Return value:
−
 
+
<pre>
 
[ 7  6  5  4  3  2  1  0 ]
 
[ 7  6  5  4  3  2  1  0 ]
 
   x  x  B  A  L3 L2 L1 L0
 
   x  x  B  A  L3 L2 L1 L0
Line 21: Line 27:
 
         │  └────────────── 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>
 +
 +
 +
== 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.
 +
 +
=== Idle mode ===
 +
Same as Prototype 1.
 +
 +
=== Active mode ===
 +
 +
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 B (0: pressed, 1: released)
 +
</pre>

Latest revision as of 16:38, 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 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.

Idle mode

Same as Prototype 1.

Active mode

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)