Skip to content

Instantly share code, notes, and snippets.

View vexdev's full-sized avatar

Luca Vitucci vexdev

  • Zürich, Switzerland
View GitHub Profile
@vexdev
vexdev / adam6050.py
Created October 23, 2021 11:53 — forked from petez69/adam6050.py
Emulate Advantech ADAM-6050 for Synology Surveillance Station
from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor
import time
import RPi.GPIO as GPIO
#import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
for x in range(2, 7):
GPIO.setup(x, GPIO.OUT)