FEASA LED ANALYSER
ICT VERSION
Synchronous Serial Mode
Read RGB and Intensity (RGBI)
This command will instruct the LED Analyser to output the RGB colour and Intensity of a LED.
All the LED data should have been previously captured.
The code for this command is 0x30 – this must be transmitted to the LED Analyser followed by
the Fiber Number of the LED to be tested. The Fiber Number is a hexadecimal number in the
range 0x01 – 0x14 (in decimal this represents numbers 1 -20). The Analyser will return 6
bytes of data – 1 byte each for Red, Green, Blue and 3 bytes for Intensity.
Command Data Transmitted Data Received
Read RGB + Intensity 0x30 + fiber num
(1byte)
R(1byte)+G(1byte)+B(1byte) +
Int(3byte)
Red = (byte1)
Green = (byte2)
Blue = (byte3)
The Intensity value is output in the last 3 bytes with the most significant byte first.
To convert the Intensity data to a decimal number use the formula:-
Intensity = (byte4 * 65536) + (byte5 * 256) + byte6
Note:- The data output in all the bytes are hexadecimal numbers.
Back to Index
47