Skip to content

Commit 9aeeef9

Browse files
committed
Made requested changes
1 parent f5db43e commit 9aeeef9

File tree

3 files changed

+87
-637
lines changed
  • Feather_Sense_Audio_Visualizer_13x9_RGB_LED_Matrix/waterfall_visualizer
  • Ukulele
  • ulab_Crunch_Numbers_Fast/waterfall

3 files changed

+87
-637
lines changed

Feather_Sense_Audio_Visualizer_13x9_RGB_LED_Matrix/waterfall_visualizer/code.py

Lines changed: 13 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -31,63 +31,22 @@
3131
is31.global_current = 0x03
3232
is31.enable = True
3333

34+
# fmt: off
3435
# array of colors for the LEDs
3536
# goes from purple to red
3637
# gradient generated using https://colordesigner.io/gradient-generator
37-
heatmap = [
38-
0xB000FF,
39-
0xA600FF,
40-
0x9B00FF,
41-
0x8F00FF,
42-
0x8200FF,
43-
0x7400FF,
44-
0x6500FF,
45-
0x5200FF,
46-
0x3900FF,
47-
0x0003FF,
48-
0x0003FF,
49-
0x0047FF,
50-
0x0066FF,
51-
0x007EFF,
52-
0x0093FF,
53-
0x00A6FF,
54-
0x00B7FF,
55-
0x00C8FF,
56-
0x00D7FF,
57-
0x00E5FF,
58-
0x00E0FF,
59-
0x00E6FD,
60-
0x00ECF6,
61-
0x00F2EA,
62-
0x00F6D7,
63-
0x00FAC0,
64-
0x00FCA3,
65-
0x00FE81,
66-
0x00FF59,
67-
0x00FF16,
68-
0x00FF16,
69-
0x45FF08,
70-
0x62FF00,
71-
0x78FF00,
72-
0x8BFF00,
73-
0x9BFF00,
74-
0xAAFF00,
75-
0xB8FF00,
76-
0xC5FF00,
77-
0xD1FF00,
78-
0xEDFF00,
79-
0xF5EB00,
80-
0xFCD600,
81-
0xFFC100,
82-
0xFFAB00,
83-
0xFF9500,
84-
0xFF7C00,
85-
0xFF6100,
86-
0xFF4100,
87-
0xFF0000,
88-
0xFF0000,
89-
0xFF0000,
90-
]
38+
heatmap = [0xb000ff,0xa600ff,0x9b00ff,0x8f00ff,0x8200ff,
39+
0x7400ff,0x6500ff,0x5200ff,0x3900ff,0x0003ff,
40+
0x0003ff,0x0047ff,0x0066ff,0x007eff,0x0093ff,
41+
0x00a6ff,0x00b7ff,0x00c8ff,0x00d7ff,0x00e5ff,
42+
0x00e0ff,0x00e6fd,0x00ecf6,0x00f2ea,0x00f6d7,
43+
0x00fac0,0x00fca3,0x00fe81,0x00ff59,0x00ff16,
44+
0x00ff16,0x45ff08,0x62ff00,0x78ff00,0x8bff00,
45+
0x9bff00,0xaaff00,0xb8ff00,0xc5ff00,0xd1ff00,
46+
0xedff00,0xf5eb00,0xfcd600,0xffc100,0xffab00,
47+
0xff9500,0xff7c00,0xff6100,0xff4100,0xff0000,
48+
0xff0000,0xff0000]
49+
# fmt: on
9150

9251
# size of the FFT data sample
9352
fft_size = 64

0 commit comments

Comments
 (0)