class Pin(object):
- def __init__(self, name, ready, enabled, action, inout):
+ def __init__(self, name,
+ ready=True,
+ enabled=True,
+ io=False,
+ action=False,
+ inout=True):
self.name = name
self.ready = ready
self.enabled = enabled
+ self.io = io
self.action = action
self.inout = inout
status.append('always_ready')
if self.enabled:
status.append('always_enabled')
+ if self.io:
+ status.append('result="io"')
res += ','.join(status)
res += "*) method "
if self.action:
res += ";"
return res
-
# basic test
if __name__ == '__main__':