Skip to content

Commit bf626d5

Browse files
committed
Un-did change that black made
1 parent 89458d2 commit bf626d5

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

examples/fancyled_cpx_helper_example.py

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,13 @@
1010
# non-equal spacing between elements. This one's a blackbody palette with a
1111
# longer red 'tail'. The helper functions let us declare this as a list of
1212
# bytes, so they're easier to copy over from existing FastLED projects.
13-
heatmap_gp = bytes(
14-
[
15-
0,
16-
255,
17-
255,
18-
255, # White
19-
64,
20-
255,
21-
255,
22-
0, # Yellow
23-
128,
24-
255,
25-
0,
26-
0, # Red
27-
255,
28-
0,
29-
0,
30-
0,
31-
]
32-
) # Black
13+
# fmt: off
14+
heatmap_gp = bytes([
15+
0, 255, 255, 255, # White
16+
64, 255, 255, 0, # Yellow
17+
128, 255, 0, 0, # Red
18+
255, 0, 0, 0]) # Black
19+
# fmt: on
3320

3421
# Convert the gradient palette into a normal palette w/16 elements:
3522
palette = helper.loadDynamicGradientPalette(heatmap_gp, 16)

0 commit comments

Comments
 (0)