UIFlow Guide
Define two functions that take parameters for simple arithmetic operations
from m5stack import *
from m5ui import *
from uiflow import *
x = None
y = None
result = None
# Describe this function...
def func(x, y):
global result
if x < y:
print(x + y)
else:
print(x - y)
# Describe this function...
def mathfuc(y, x):
global result
if x < 0:
return y - x
return x + y
func(2, 3)
result = mathfuc(10, 5)
def func(x, y):
global result
if x < y:
print(x + y)
else:
print(x - y)
def mathfuc(y, x):
global result
return x + y
if x < 0:
return y - x