Skip to content

Instantly share code, notes, and snippets.

@petez69
petez69 / adam6050.py
Last active October 23, 2021 11:53 — forked from hdo/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)