Blynk using UIFLow block
-
Hi,
I have tried to establish blynk code using UIFlow block.
However, there is an error "nonetype object isn't callable"
on the line "@blynk.handle_event('write v*')'.How can I solve this?
from m5stack import * from m5ui import * from uiflow import * from ble import blynk setScreenColor(0x222222) label0 = M5TextBox(13, 40, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0) label1 = M5TextBox(13, 69, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0) title0 = M5Title(title="Title", x=3 , fgcolor=0xFFFFFF, bgcolor=0x0000FF) num0 = None message = None @blynk.handle_event('write v*') def blynk_write(*args): # global num0, message num0, message = args[0], args[1] if num0 == 15: label0.setText(str(message[0])) label1.setText(str(message[1])) pass blynk.init('RoboCar', '---', blynk.BLE) label0.setText(str(power.getBatteryLevel()))
-
Hi @beacon88 ,
Please use UiFlow online version.Offline have some bug...