-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
NOTES.md
124 lines (98 loc) · 3.18 KB
/
NOTES.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#! /bin/bash
## This is for ASROCK STEEL LEGEND B450M motherboard. using the Nuvoton RGB MCU chip.
#deps:
#sudo pacman -S i2c-tools linux-latest-headers
#yay -S --answerclean A --answerdiff N i2c-piix4-aura-dkms #this adds the 0b20 SMBus
#sudo modprobe i2c_dev
#i2cdetect -l
#This should have a line that has
#
#i2c-4 smbus SMBus PIIX4 adapter port 1 at 0b20 SMBus adapter
#
#This is for V3 of the LED firmware on the nuvoton RGB MCU.
#Format is
# 1 = bus
# 2 = address
# 3 = command
# n = data
# s = Write mode (s = SMBus block data)
#Registers
#0x00 = Firmware version.
#0x12 = Speed for breathing
#0x13 = Speed for strobe
#0x14 = Speed for cycling
#0x15 = Speed for random
#0x16 = ????? maybe another RGB?
#0x17 = Speed for wave
#0x18 = Speed for spring
#0x19 = Speed for stack
#0x1a = Speed for cram
#0x1b = Speed for scan
#0x1c = Speed for neon
#0x1d = Speed for water
#0x1e = Speed for rainbow
#0x30 = Mode ('off':0x10,'static':0x11,'breathing':0x12,'strobe':0x13,'cycling':0x14,'random':0x15,'wave':0x17,'spring':0x18,'stack':0x19,'cram':0x1a,'scan':0x1b,'neon':0x1c,'water':0x1d,'rainbow':0x1e)
#0x34 = r g b (used for mode 0x11)
#Switch to
#Off
sudo i2cset -y4 0x6a 0x30 0x10 s
#Static - Works
sudo i2cset -y 4 0x6a 0x30 0x11 s
sudo i2cset -y 4 0x6a 0x34 0xFF 0x00 0x00 s #set rgb
#Breathing
sudo i2cset -y 4 0x6a 0x30 0x12 s
sudo i2cset -y 4 0x6a 0x12 0x01 s #fast
sudo i2cset -y 4 0x6a 0x12 0xff s #slow
sudo i2cset -y 4 0x6a 0x34 0xFF 0xff 0x0f s #set rgb
#strobe
sudo i2cset -y 4 0x6a 0x30 0x13 s
sudo i2cset -y 4 0x6a 0x13 0x01 s #fast
sudo i2cset -y 4 0x6a 0x13 0xff s #slow
sudo i2cset -y 4 0x6a 0x34 0xFF 0xff 0xff s #set rgb
#cycling
sudo i2cset -y 4 0x6a 0x30 0x14 s
sudo i2cset -y 4 0x6a 0x14 0x01 s #fast
sudo i2cset -y 4 0x6a 0x14 0xff s #slow
#random
sudo i2cset -y 4 0x6a 0x30 0x15 s
sudo i2cset -y 4 0x6a 0x15 0x01 s #fast
sudo i2cset -y 4 0x6a 0x15 0xff s #slow
#wave
sudo i2cset -y 4 0x6a 0x30 0x17 s
sudo i2cset -y 4 0x6a 0x17 0x01 s #fast
sudo i2cset -y 4 0x6a 0x17 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#spring
sudo i2cset -y 4 0x6a 0x30 0x18 s
sudo i2cset -y 4 0x6a 0x18 0x01 s #fast
sudo i2cset -y 4 0x6a 0x18 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#stack
sudo i2cset -y 4 0x6a 0x30 0x19 s
sudo i2cset -y 4 0x6a 0x19 0x01 s #fast
sudo i2cset -y 4 0x6a 0x19 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#cram
sudo i2cset -y 4 0x6a 0x30 0x1a s
sudo i2cset -y 4 0x6a 0x1a 0x01 s #fast
sudo i2cset -y 4 0x6a 0x1a 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#scan
sudo i2cset -y 4 0x6a 0x30 0x1b s
sudo i2cset -y 4 0x6a 0x1b 0x01 s #fast
sudo i2cset -y 4 0x6a 0x1b 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#neon
sudo i2cset -y 4 0x6a 0x30 0x1c s
sudo i2cset -y 4 0x6a 0x1c 0x01 s #fast
sudo i2cset -y 4 0x6a 0x1c 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#water
sudo i2cset -y 4 0x6a 0x30 0x1d s
sudo i2cset -y 4 0x6a 0x1d 0x01 s #fast
sudo i2cset -y 4 0x6a 0x1d 0xfe s #slow
sudo i2cset -y 4 0x6a 0x34 0xF0 0xff 0xff s #set rgb
#rainbow
sudo i2cset -y 4 0x6a 0x30 0x1e s
sudo i2cset -y 4 0x6a 0x1e 0x01 s #fast
sudo i2cset -y 4 0x6a 0x1e 0xfe s #slow