Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # control Cheap Bluetooth LED Stip
- # from Linux without App
- # based on instructions found at
- # https://linuxthings.co.uk/blog/control-an-elk-bledom-bluetooth-led-strip
- sudo apt install python3-gattlib
- # scan to get bluetooth Device's Address
- sudo hcitool lescan
- #mine is BE:58:94:03:02:0B
- gatttool -b BE:58:50:00:54:15 --char-write-req -a 0x0009 -n 7e0004f00001ff00ef # POWER ON
- gatttool -b BE:58:50:00:54:15 --char-write-req -a 0x0009 -n 7e000503ff000000ef # RED
- gatttool -b BE:58:50:00:54:15 --char-write-req -a 0x0009 -n 7e0005030000ff00ef # BLUE
- gatttool -b BE:58:50:00:54:15 --char-write-req -a 0x0009 -n 7e00050300ff0000ef # GREEN
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e000503ff550000ef # YELLOW
- gatttool -b BE:58:50:00:54:15 --char-write-req -a 0x0009 -n 7e0004000000ff00ef # POWER OFF
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e000503FFFFFF00ef # White
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e000503FF000000ef # Red
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050300FF0000ef # Lime
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e0005030000FF00ef # Blue
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e000503FFFF0000ef # Yellow
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050300FFFF00ef # Cyan
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e000503FF00FF00ef # Magenta
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e000503C0C0C000ef # Silver
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050380808000ef # Gray
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050380000000ef # Maroon
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050380800000ef # Olive
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050300800000ef # Green
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050380008000ef # Purple
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050300808000ef # Teal
- gatttool -b BE:58:94:03:02:0B --char-write-req -a 0x0009 -n 7e00050300008000ef # Navy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement