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 low
, mid
, high
, amp
= noise
.measure()
34 draw
.rectangle((0, 0, disp
.width
, disp
.height
), (0, 0, 0))
35 img
.paste(img2
, (1, 0))
36 draw
.line((0, 0, 0, amp
), fill
=(int(low
), int(mid
), int(high
)))