Skip to content

Commit 0c04a5c

Browse files
authored
Merge pull request #6 from xAstroBoy/patch-2
More Device Colors for Apple.
2 parents e896285 + 16f4acb commit 0c04a5c

File tree

1 file changed

+63
-4
lines changed

1 file changed

+63
-4
lines changed

ble_spam/protocols/continuity.c

+63-4
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,56 @@ typedef struct {
1414
static const ContinuityColor colors_white[] = {
1515
{0x00, "White"},
1616
};
17+
static const ContinuityColor colors_airpods_max[] = {
18+
{0x00, "White"},
19+
{0x02, "Red"},
20+
{0x03, "Blue"},
21+
{0x0F, "Black"},
22+
{0x11, "Light Green"},
23+
};
1724
static const ContinuityColor colors_beats_flex[] = {
1825
{0x00, "White"},
1926
{0x01, "Black"},
2027
};
2128
static const ContinuityColor colors_beats_solo_3[] = {
2229
{0x00, "White"},
2330
{0x01, "Black"},
31+
{0x6, "Gray"},
32+
{0x7, "Gold/White"},
33+
{0x8, "Rose Gold"},
34+
{0x09, "Black"},
35+
{0xE, "Violet/White"},
36+
{0xF, "Bright Red"},
37+
{0x12, "Dark Red"},
38+
{0x13, "Swamp Green"},
39+
{0x14, "Dark Gray"},
40+
{0x15, "Dark Blue"},
41+
{0x1D, "Rose Gold 2"},
42+
{0x20, "Blue/Green"},
43+
{0x21, "Purple/Orange"},
44+
{0x22, "Deep Blue/ Light blue"},
45+
{0x23, "Magenta/Light Fuchsia"},
46+
{0x25, "Black/Red"},
47+
{0x2A, "Gray / Disney LTD"},
48+
{0x2E, "Pinkish white"},
49+
{0x3D, "Red/Blue"},
50+
{0x3E, "Yellow/Blue"},
51+
{0x3F, "White/Red"},
52+
{0x40, "Purple/White"},
53+
{0x5B, "Gold"},
54+
{0x5C, "Silver"},
2455
};
2556
static const ContinuityColor colors_powerbeats_3[] = {
2657
{0x00, "White"},
2758
{0x01, "Black"},
59+
{0x0B, "Gray/Blue"},
60+
{0x0C, "Gray/Red"},
61+
{0x0D, "Gray/Green"},
62+
{0x12, "Red"},
63+
{0x13, "Swamp Green"},
64+
{0x14, "Gray"},
65+
{0x15, "Deep Blue"},
66+
{0x17, "Dark with Gold Logo"},
2867
};
2968
static const ContinuityColor colors_powerbeats_pro[] = {
3069
{0x00, "White"},
@@ -43,10 +82,18 @@ static const ContinuityColor colors_beats_solo_pro[] = {
4382
static const ContinuityColor colors_beats_studio_buds[] = {
4483
{0x00, "White"},
4584
{0x01, "Black"},
85+
{0x02, "Red"},
86+
{0x03, "Blue"},
87+
{0x04, "Pink"},
88+
{0x06, "Silver"},
4689
};
4790
static const ContinuityColor colors_beats_x[] = {
4891
{0x00, "White"},
4992
{0x01, "Black"},
93+
{0x02, "Blue"},
94+
{0x05, "Gray"},
95+
{0x1D, "Pink"},
96+
{0x25, "Dark/Red"},
5097
};
5198
static const ContinuityColor colors_beats_studio_3[] = {
5299
{0x00, "White"},
@@ -58,7 +105,8 @@ static const ContinuityColor colors_beats_studio_3[] = {
58105
{0x25, "Black / Red"},
59106
{0x26, "Midnight Black"},
60107
{0x27, "Desert Sand 2"},
61-
{0x28, "Clear blue/ gold"},
108+
{0x28, "Gray"},
109+
{0x29, "Clear blue/ gold"},
62110
{0x42, "Green Forest camo"},
63111
{0x43, "White Camo"},
64112
};
@@ -69,10 +117,21 @@ static const ContinuityColor colors_beats_studio_pro[] = {
69117
static const ContinuityColor colors_beats_fit_pro[] = {
70118
{0x00, "White"},
71119
{0x01, "Black"},
120+
{0x02, "Pink"},
121+
{0x03, "Grey/White"},
122+
{0x04, "Full Pink"},
123+
{0x05, "Neon Green"},
124+
{0x06, "Night Blue"},
125+
{0x07, "Light Pink"},
126+
{0x08, "Brown"},
127+
{0x09, "Dark Brown"},
72128
};
73129
static const ContinuityColor colors_beats_studio_buds_[] = {
74-
{0x00, "White"},
75-
{0x01, "Black"},
130+
{0x00, "Black"},
131+
{0x01, "White"},
132+
{0x02, "Transparent"},
133+
{0x03, "Silver"},
134+
{0x04, "Pink"},
76135
};
77136

78137
static const struct {
@@ -82,7 +141,7 @@ static const struct {
82141
const uint8_t colors_count;
83142
} pp_models[] = {
84143
{0x0E20, "AirPods Pro", colors_white, COUNT_OF(colors_white)},
85-
{0x0A20, "AirPods Max", colors_white, COUNT_OF(colors_white)},
144+
{0x0A20, "AirPods Max", colors_airpods_max, COUNT_OF(colors_airpods_max)},
86145
{0x0055, "Airtag", colors_white, COUNT_OF(colors_white)},
87146
{0x0030, "Hermes Airtag", colors_white, COUNT_OF(colors_white)},
88147
{0x0220, "AirPods", colors_white, COUNT_OF(colors_white)},

0 commit comments

Comments
 (0)