2 from PIL
import Image
, ImageDraw
3 from enviroplus
.noise
import Noise
15 cs
=ST7735
.BG_SPI_CS_FRONT
,
22 img
= Image
.new('RGB', (disp
.width
, disp
.height
), color
=(0, 0, 0))
23 draw
= ImageDraw
.Draw(img
)
27 amps
= noise
.get_amplitudes_at_frequency_ranges([
32 amps
= [n
* 32 for n
in amps
]
34 draw
.rectangle((0, 0, disp
.width
, disp
.height
), (0, 0, 0))
35 img
.paste(img2
, (1, 0))
36 draw
.line((0, 0, 0, amps
[0]), fill
=(0, 0, 255))
37 draw
.line((0, 0, 0, amps
[1]), fill
=(0, 255, 0))
38 draw
.line((0, 0, 0, amps
[2]), fill
=(255, 0, 0))