diff --git a/client_sw/images.py b/client_sw/images.py index f6ab70e..1984425 100644 --- a/client_sw/images.py +++ b/client_sw/images.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -import time from PIL import Image, ImageDraw, ImageFont from matrixSender import MatrixSender import time diff --git a/client_sw/images/160_144/kirby1.png b/client_sw/images/160_144/kirby1.png new file mode 100644 index 0000000..d2f428b Binary files /dev/null and b/client_sw/images/160_144/kirby1.png differ diff --git a/client_sw/images/160_144/kirby2.png b/client_sw/images/160_144/kirby2.png new file mode 100644 index 0000000..124b96a Binary files /dev/null and b/client_sw/images/160_144/kirby2.png differ diff --git a/client_sw/images/160_144/megaman.png b/client_sw/images/160_144/megaman.png new file mode 100644 index 0000000..dfb5a07 Binary files /dev/null and b/client_sw/images/160_144/megaman.png differ diff --git a/client_sw/images/160_144/pokemon2.png b/client_sw/images/160_144/pokemon2.png new file mode 100644 index 0000000..9f463dd Binary files /dev/null and b/client_sw/images/160_144/pokemon2.png differ diff --git a/client_sw/images/160_144/pokemon3.jpg b/client_sw/images/160_144/pokemon3.jpg new file mode 100644 index 0000000..bea1017 Binary files /dev/null and b/client_sw/images/160_144/pokemon3.jpg differ diff --git a/client_sw/matrixSender.py b/client_sw/matrixSender.py index 6ff413c..8ad4689 100644 --- a/client_sw/matrixSender.py +++ b/client_sw/matrixSender.py @@ -52,23 +52,18 @@ class MatrixSender(object): def send(self, image,invert=False): #changes slowly 'fadespeed'-pixels at a time global threadrunning - #if fadespeed=0 -> change instant. - #time to change= 1280/25*0.2 imgmap = [] for pixel in image.getdata(): r, g, b, a = pixel pixelbrightness=int( (r+g+b)/3 *(pow(2,self.bitsperpixel)-1) /255 +0.5) - if invert: pixelbrightness=pow(2,self.bitsperpixel)-1-pixelbrightness for b in self._intToBitlist(pixelbrightness): imgmap.append(b) - - self.sendPacket(imgmap) #send packet and save last-imagemap diff --git a/original_ctrl_sw/printtext_dfi/printtext.py b/original_ctrl_sw/printtext_dfi/printtext.py index 8b17d78..e9b253c 100644 --- a/original_ctrl_sw/printtext_dfi/printtext.py +++ b/original_ctrl_sw/printtext_dfi/printtext.py @@ -8,6 +8,10 @@ from random import randint flipdot = FlipdotSender("localhost", 2323,(160,48),40) #text=sys.argv[1] +if len(sys.argv)>1: + while(True): + flipdot.send_img_from_filename(sys.argv[1],0) + time.sleep(1) #flipdot.send_text(text) #flipdot.send_marquee(text)