Created
March 7, 2020 16:46
-
-
Save flxai/9e97adc517995c28de65b5833d42baae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Send stuff to the landscape flipdot panel | |
from socket import * | |
from time import sleep | |
FD_ADDRESS = ('192.168.1.132', 1234) | |
SLEEP_S = 1.5 | |
TEXT = ["1 flipdot", "2 hacker", "3 space", "4 kassel"] | |
while True: | |
for st in text: | |
s = socket(AF_INET, SOCK_DGRAM) | |
s.sendto(bytes(st.encode("ASCII")), FD_ADDRESS) | |
s.close() | |
sleep(SLEEP_S) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment