haixuantao's picture
Small update
9b97c01
raw
history blame contribute delete
385 Bytes
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