Skip to content

Commit

Permalink
fix ctrl bytes for "on" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jigoku committed Apr 3, 2017
1 parent 426dbff commit 99f4cc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions blackweb_aya.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def change_mode(n):
data = [0x07, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00]
elif n == 1:
#on
data = [0x07, 0x0b, 0x01, 0x00, 0x00, 0xaa, 0x00, 0x00]
data = [0x07, 0x0c, 0x01, 0x00, 0x0f, 0x00, 0x00, 0x00]
elif n == 2:
#breathe
data = [0x07, 0x0b, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00]
Expand All @@ -58,10 +58,11 @@ def store_settings():


def factory_reset():
data = [0x07, 0x03] + [0x00]*5
#doesn't seem to do anything?
data = [0x07, 0x03] + [0x00]*6

def change_polling(n):
#hardware mouse polling speed
#change hardware mouse polling speed
if n == 0:
poll = [0x00] #125hz
elif n == 1:
Expand Down
2 changes: 1 addition & 1 deletion led_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
exit("You need to have root privileges to run this script.")

blackweb_aya.open_usb()
blackweb_aya.change_mode(2)
blackweb_aya.change_mode(1)
blackweb_aya.change_color(sys.argv[1],sys.argv[2],sys.argv[3])
#blackweb_aya.change_polling(3)
blackweb_aya.store_settings()
Expand Down

0 comments on commit 99f4cc0

Please sign in to comment.