Skip to content

Instantly share code, notes, and snippets.

@flxai
Created March 7, 2020 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flxai/9e97adc517995c28de65b5833d42baae to your computer and use it in GitHub Desktop.
Save flxai/9e97adc517995c28de65b5833d42baae to your computer and use it in GitHub Desktop.
#!/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