Turns the locomotive lights on or off.

Namespace: XpressnetLib
Assembly: XpressnetLib (in XpressnetLib.dll) Version: 0.1.4195.39796

Syntax

C#
public bool LocoLights(
	int locoAddr,
	bool lights
)
Visual Basic
Public Function LocoLights ( _
	locoAddr As Integer, _
	lights As Boolean _
) As Boolean
Visual C++
public:
bool LocoLights(
	int locoAddr, 
	bool lights
)

Parameters

locoAddr
Type: System..::..Int32
Locomotive address
lights
Type: System..::..Boolean
True to turn the lights on, false to turn them off.

Return Value

True if the operation is successful.

See Also