15
« on: August 29, 2010, 10:12:20 pm »
Howdy - my first driver!
This will control Epson Powerlite Home Cinema projectors, and was tested with the "Cinema 400" model. It has the following functionality:
- Power on/off
- Change settings - Input Source, Aspect Ratio, Color Mode
- Send raw commands - for anything I missed
One thing I would like to change, but could not figure out how to do it, was to make context-sensitive values in the method calls depending on the projector chosen. Epson changes the color modes and input labels between their models, though the general communication protocol is identical.
For example, I would like to change this:
[ScriptObjectMethod("Change Color Mode", "Changes the color mode of the projector")]
[ScriptObjectMethodParameter("colorMode","The color mode to use",
new string[] { "Dynamic", "Living Room", "Natural", "Theatre", "Theatre Black 1", "Theatre Black 2", "sRGB"} )
]
public void SetColorMode(ScriptString colorMode)
to this:
[ScriptObjectMethod("Change Color Mode", "Changes the color mode of the projector")]
[ScriptObjectMethodParameter("colorMode","The color mode to use",
[b]*** A dynamic list of values from an array or other class ***[/b]
]
public void SetColorMode(ScriptString colorMode)
Is this possible?
Thanks and let me know if there is any feedback or changes I should make
- J
Edit 9/7/10 - Uploaded new version of driver
Edit 9/14/10 - Updated to fix bug when initializing
Edit 9/16/10 - Added 6100/6500 UB projector, restructuring of code, tested with .26.1
Edit 11/27/10 - Fixed null error during startup, tested with .28RC1
Edit 6/1/11 - Fixed notifications. Tested with 1.1.0.33