pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

Unit SSR

Example

from m5stack import *
from m5ui import *
from uiflow import *
import unit

setScreenColor(0x222222)
ssr_0 = unit.get(unit.SSR, unit.PORTA)

while True:
  ssr_0.ssr_control(1)
  wait_ms(2)

API

ssr_0.ssr_control(1)
  • Turn on or off the relay
    • ON
    • OFF
On This Page