Skip to content
Snippets Groups Projects
Commit a943f002 authored by Martin Teichmann's avatar Martin Teichmann
Browse files

add a Dummy device

useful for testing stuff
parent 50a88abf
No related branches found
No related tags found
No related merge requests found
...@@ -114,3 +114,18 @@ class Counter(Device): ...@@ -114,3 +114,18 @@ class Counter(Device):
def program(self): def program(self):
self.count += 1 self.count += 1
def update(self):
self.count += 1
class Dummy(Device):
"""A placeholder device assuring a terminal is initialized"""
def __init__(self, terminals):
self.terminals = terminals
def get_terminals(self):
return set(self.terminals)
def program(self):
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment