Music Visualization
Displaying mock music visualization using multi color bars on Waveshare pico-lcd-1.3
Device : https://www.waveshare.com/pico-lcd-1.3.htm
fill_list = [LCD.blue, LCD.red, LCD.green, LCD.white]
while 1:
rows = 0
for col in range(0, 240, 10):
color = fill_list[random.randint(0, 3)]
for row in range(rows):
LCD.hline(row, col, int(random.random() * 10), color)
rows += random.randint(1, int(120 / (random.randint(1, 60))))
LCD.show()
LCD.fill(LCD.black)
# time.sleep(0.001)
# LCD.fill(0xFFFF)
Code library code can be found here : https://psblog.chiranjeevikarthik.me/posts/waveshare-lcd-1_3inch/black_widow or here from official docs : https://www.waveshare.com/wiki/Pico-LCD-1.3