I have rename the program and retried and eventually it worked! thanks
Best posts made by candide
-
RE: M5StickC + Issue: Cannot execute program after download
Latest posts made by candide
-
RE: Cannot use Blynk with M5StickC +
Thanks! I use v2 (white) so i don't have a solution since v1(black) does not allow new login creation and it is not compatible with v2 login
What else can i use to achieve the same goal. The goal beeing to be able to receive the temp data easily on a mobile phone or any remote device. Thanks
-
Cannot use Blynk with M5StickC +
Hello,
I'm certainly missing something super obvious here. So i need your help
I tried the sample code provided in the doc but it is not easy for me.
Also if you can point me to more tutorials on blynk feel free to do it.Environment
- M5StickC+
- FW 1.9.8
- NCIR HAT
Issue
When using Blynk nothing happens in Run mode. M5Stick screen remains stalled, with Labels with its default value. Nothing also on the Blynk app side.
M5Stick works fine, when i remove all the blynk related stuff it works great. See other post for the code
What am I missing here?
from m5stack import * from m5ui import * from uiflow import * from IoTcloud import blynk import hat import hat setScreenColor(0x000000) hat_ncir_0 = hat.get(hat.NCIR) pool_temp_pin = None pool_temp = None label1 = M5TextBox(93, 58, "Text", lcd.FONT_DejaVu56, 0xFFFFFF, rotate=90) title0 = M5Title(title="Title", x=30, fgcolor=0xFFFFFF, bgcolor=0x0000FF) def blynk_read_v1(v_pin): global pool_temp_pin, pool_temp pool_temp_pin = v_pin pool_temp = hat_ncir_0.temperature title0.setTitle('Pool Temp') label1.setText(str(pool_temp)) blynk1.virtual_write(pool_temp, pool_temp) pass blynk1 = blynk.Blynk(token='1234567890') blynk1.handle_event('read v1', blynk_read_v1) while True: blynk1.run() wait_ms(2)
-
RE: M5StickC + Issue: Cannot execute program after download
I have rename the program and retried and eventually it worked! thanks
-
RE: M5StickC + Issue: Cannot execute program after download
Sure, here you go. I'm using the NCIR hat
from m5stack import * from m5ui import * from uiflow import * import hat import hat setScreenColor(0x000000) hat_ncir_0 = hat.get(hat.NCIR) label1 = M5TextBox(93, 58, "Text", lcd.FONT_DejaVu56, 0xFFFFFF, rotate=90) title0 = M5Title(title="Title", x=30, fgcolor=0xFFFFFF, bgcolor=0x0000FF) while True: title0.setTitle('Pool Temp') label1.setText(str(hat_ncir_0.temperature)) wait_ms(2)
-
M5StickC + Issue: Cannot execute program after download
Hello,
I'm trying to execute a program which works fine in "live" mode.
Here is a proof:
https://imgur.com/hnCO0Zj
When i click "Download" in UIFlow, program goes to the m5 however when i click on the "Play" it does not execute.
Do you know what I'm doing wrong?
https://imgur.com/RtO18y2
-
Cannot execute program - stuck when trying to execute - works fine in "live" mode
I go to the menu (v1.9.8) - AppList
Here i find my program on the list and i click the Home (M5) button (i suppose this is this one to run the program)
Then nothing happen. The interface stays there and nothing moves.When in coding/live mode in UIFlow program works great
See: https://imgur.com/hnCO0ZjWhat am I doing wrong here? Thanks