diff --git a/python/clearscreen.py b/python/clearscreen.py new file mode 100755 index 0000000000000000000000000000000000000000..8dc09b8f5885cd1057d25b0edc0293d684387466 --- /dev/null +++ b/python/clearscreen.py @@ -0,0 +1,10 @@ +#!/usr/bin/python +import client +import random + +def clear(): + pixels = [0] * client.HEIGHT * client.WIDTH + client.blit(0,0,client.WIDTH,client.HEIGHT,pixels) + +if __name__=="__main__": + clear() diff --git a/python/random_pixel.py b/python/random_pixel.py new file mode 100755 index 0000000000000000000000000000000000000000..af809cf857f7700fe6c6e6a8e21d8c0a423f3759 --- /dev/null +++ b/python/random_pixel.py @@ -0,0 +1,10 @@ +#!/usr/bin/python +import client +import random + +if __name__=="__main__": + while(True): + x = random.random() * client.WIDTH + y = random.random() * client.HEIGHT + client.set_pixel(x,y, 1 if random.random() > 0.5 else 0) + diff --git a/python/speedtest.py b/python/speedtest.py new file mode 100755 index 0000000000000000000000000000000000000000..e19fa0bac84f8c1be80174336279ad4489c9e1af --- /dev/null +++ b/python/speedtest.py @@ -0,0 +1,8 @@ +#!/usr/bin/python +import client +import random + +if __name__=="__main__": + for y in range(0, client.HEIGHT): + for x in range(0, client.WIDTH): + client.set_pixel(x,y,1)