The tidbyt is a wifi connected led matrix that's way more fun than it has any right to be. This is a simple python library that allows the display to plot simple lines and text, inspired by (but not nearly as functional as) matplotlib.
import tidbytplotlib as tbplt
dev_name = "DEVICE_ID"
api_token = "API_TOKEN"
tb = tbplt.tidbyt_plot(dev_name,api_token)
a = linspace(0,1,100)
mxx = 25
mmm = 200
for i in range(0,100,2):
for j in range(1,mxx):
b = j*sin(j*.5*a)
tb.plot(a,b,(255-i-j*mmm//mxx,10,i+j*mmm//mxx))
tb.text("hello\nworld",16,5,color='white')
tb.render_frame()
gif = tb.make_gif(show=True,rev=True,duration=100)
tb.send_to_tidbyt(gif,"ok")
which should render
- requests
- numpy
- PILLOW