File size: 385 Bytes
9b97c01 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from dora import DoraStatus
import pyarrow as pa
class Operator:
def __init__(self):
self.image = None
self.text = None
def on_event(
self,
dora_event,
send_output,
) -> DoraStatus:
if dora_event["type"] == "INPUT":
send_output("led", pa.array([255, 0, 0]))
pass
return DoraStatus.CONTINUE
|