![]() ![]() Set brightness: 0x7e, 0x00, 0x01, 0xZZ, 0x00, 0x00, 0x00, 0x00, 0xef where ZZ is the brightness value as hex ![]() Set color: 0x7e, 0x00, 0x05, 0x03, 0xRR, 0xGG, 0xBB, 0x00, 0xef where R, G, B are the red green and blue values in hex According to the github project above, each command is 9 bytes starting with 0x7e 0x00, ending with 0x00 0xef and the actual command in between. Handle: 0x0008, char properties: 0x06, char value handle: 0x0009, uuid: 0000fff3-0000-1000-8000-00805f9b34fbĪfter a bit of playing around I found out that the handle 0x0009 was the one I wanted to be sending commands to. At the > prompt you can connect to your device and get its characteristics $ sudo gatttool -IĪttempting to connect to BE:58:50:00:54:15 It needs to be run as root otherwise it won't work, at least it didn't for me. Once you have the address of the device you can connect to it using gatttool in interactive mode with the command sudo gatttool -I. To be able to talk to the LED strip I first needed to find its Bluetooth address, that can be done using sudo hcitool lescan which will keep on displaying the addresses of any device which is ready for a connection. Some examples are at the bottom of the page I did find a project on github which provides some commands that can be sent to control the lights though. This one though isn't the same as my old Triones / HappyLighting one and identifies itself as ELK-BLEDOM and the app is called duoCo Strip. I got a new monitor, and got a new cheap LED strip to stick behind it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |