DATA_PAN_CLOCKWISE (0x14)
This is a five-byte command (Sync, Lamp address, command, speed, CRC)
The speed value is between 0 and 127. Value 0 stops pan motion. Increasing
values make the lamp move progressively faster. Transmitting codes 0xFF
0x90 0x14 0x7F would make lamp 0 move full speed clockwise.
DATA_PAN_ANTICLOCKWISE (0x15)
This is a five-byte command (Sync, Lamp address, command, speed, CRC)
The speed value is between 0 and 127. Value 0 stops pan motion. Increasing
values make the lamp move progressively faster. Transmitting codes Hex
0xFF 0x90 0x15 0x7F would make lamp 0 move full speed anticlockwise.
DATA_TILT_DOWN (0x16)
This is a five-byte command (Sync, Lamp address, command, speed, CRC)
The speed value is between 0 and 127. Value 0 stops tilt motion. Increasing
values make the lamp move progressively faster. Transmitting codes Hex
0xFF 0x92 0x16 0x7F would make lamp 2 move down at full speed.
DATA_TILT_UP (0x17)
This is a five-byte command (Sync, Lamp address, command, speed, CRC)
The speed value is between 0 and 127. Value 0 stops tilt motion. Increasing
values make the lamp move progressively faster. Transmitting codes Hex
0XFF 0x92 0x17 0x7F would make lamp 2 move up at full speed.
DATA_MOVE_TO_PAN_POSITION (0x18)
This is a six-byte command (Sync, Lamp address, command, position LSB,
Position MSB, CRC). The position value is 12 bits and gives a resolution of
0.1 degrees. The most significant byte (sent last) comprises the top 5 bits.
The most significant bit (bit 4
– 0b0000x000) determines whether the pan
angle is positive (clockwise of centre) or negative (anticlockwise of centre) Bit
4 set to 1 indicates angle is clockwise. The remaining bits will increment as
the lamp moves from centre in either direction. The least significant byte
comprises the lower 7 bits of the value with the most significant bit set to zero.
As an example, a value of 0x0A followed by 0x08 would indicate an angle 1
degree clockwise of centre. 0x0A = 10 but resolution is 0.1 degrees so divide
integer value by 10 to give 1.0 degrees. A value of 0x64 followed by 0x00
would indicate a value of 10 degrees anticlockwise of centre.
DATA_MOVE_TO_TILT_POSITION (0x19)
This is a six-byte command (Sync, Lamp address, command, position LSB,
Position MSB, CRC). The position value is 12 bits and gives a resolution of
0.1 degrees. The most significant byte (sent last) comprises the top 5 bits.
The most significant bit (bit 4
– 0b0000x000) determines whether the tilt angle
is positive (tilted up relative to straight ahead) or negative (tilted down relative
to straight ahead). Bit 4 set to 1 indicates angle is tilt up. The remaining bits
will increment as the lamp moves from centre. The least significant byte
comprises the lower 7 bits of the value with the most significant bit set to zero.
As an example, a value of 0x0A followed by 0x08 would indicate an angle 1
degree up of centre. 0x0A = 10 but resolution is 0.1 degrees so divide integer
value by 10 to give 1.0 degrees. A value of 0x64 followed by 0x00 would
indicate a value of 10 degrees down of centre.