Skip to content

Instantly share code, notes, and snippets.

@phubbard
Created July 31, 2023 18:37
Show Gist options
  • Save phubbard/0046845978a2700650750b357bca0dc6 to your computer and use it in GitHub Desktop.
Save phubbard/0046845978a2700650750b357bca0dc6 to your computer and use it in GitHub Desktop.
Litra HID strings for various color temperatures
Code:
"""
This module defines a library for accessing the functionality of the
Logitech Litra Glow
"""
if __name__ == '__main__':
for x in range(2700, 6600, 100):
byte_array = x.to_bytes(2, 'big')
# print(f'{x=}', 0x02, [0x11, 0xff, 0x04, 0x9c, byte_array[0], byte_array[1], 0x00, 0x00,
# 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],
# TIMEOUT_MS)
print(f'{x} 0x11,0xff,0x04,0x9c,{byte_array[0]},{byte_array[1]}')
2700 0x11,0xff,0x04,0x9c,10,140
2800 0x11,0xff,0x04,0x9c,10,240
2900 0x11,0xff,0x04,0x9c,11,84
3000 0x11,0xff,0x04,0x9c,11,184
3100 0x11,0xff,0x04,0x9c,12,28
3200 0x11,0xff,0x04,0x9c,12,128
3300 0x11,0xff,0x04,0x9c,12,228
3400 0x11,0xff,0x04,0x9c,13,72
3500 0x11,0xff,0x04,0x9c,13,172
3600 0x11,0xff,0x04,0x9c,14,16
3700 0x11,0xff,0x04,0x9c,14,116
3800 0x11,0xff,0x04,0x9c,14,216
3900 0x11,0xff,0x04,0x9c,15,60
4000 0x11,0xff,0x04,0x9c,15,160
4100 0x11,0xff,0x04,0x9c,16,4
4200 0x11,0xff,0x04,0x9c,16,104
4300 0x11,0xff,0x04,0x9c,16,204
4400 0x11,0xff,0x04,0x9c,17,48
4500 0x11,0xff,0x04,0x9c,17,148
4600 0x11,0xff,0x04,0x9c,17,248
4700 0x11,0xff,0x04,0x9c,18,92
4800 0x11,0xff,0x04,0x9c,18,192
4900 0x11,0xff,0x04,0x9c,19,36
5000 0x11,0xff,0x04,0x9c,19,136
5100 0x11,0xff,0x04,0x9c,19,236
5200 0x11,0xff,0x04,0x9c,20,80
5300 0x11,0xff,0x04,0x9c,20,180
5400 0x11,0xff,0x04,0x9c,21,24
5500 0x11,0xff,0x04,0x9c,21,124
5600 0x11,0xff,0x04,0x9c,21,224
5700 0x11,0xff,0x04,0x9c,22,68
5800 0x11,0xff,0x04,0x9c,22,168
5900 0x11,0xff,0x04,0x9c,23,12
6000 0x11,0xff,0x04,0x9c,23,112
6100 0x11,0xff,0x04,0x9c,23,212
6200 0x11,0xff,0x04,0x9c,24,56
6300 0x11,0xff,0x04,0x9c,24,156
6400 0x11,0xff,0x04,0x9c,25,0
6500 0x11,0xff,0x04,0x9c,25,100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment