Edit: I haven’t seen an update on easyloader yet for OSX. In the meantime, use Arduino or uiFlow to program the Atom and m5burner to flash the firmware.
Posts made by world101
RE: PlatformIO Projects for BugC and Joystick + 2 M5StickCs using ESP-Now
Great! Would love to see a demo video of it in action.
RE: HttpPost using UIflow
@franco what is the m5stack device is talking to? It appears to be a web server or similar, but what is it? Also, I would recommend adding another label to the m5stack/m5stickC to get the HTTP status code. This would give an indication if the flow is timing out (no response or eventually failure after the timeout period) or what the response is with the HTTP error code (see this link for a list of error codes).
Also, you showed two http addresses above, http://188.8.131.52:8084/?onx and http://192.168.1.123/?offx. I assume one is on a public network and the other is on your private/local network. So you would also need to make sure the servers are not blocking traffic from the network the m5stack/m5stickC is on.
RE: UIFlow 1.6.1
Thanks for adding NTP support!
Edit #1: it seems like NTP isn't working for me on the StickC with a very basic flow...
The REPL error:
Traceback (most recent call last): File "flow/m5cloud.py", line 76, in _exec_fun File "<string>", line 23, in <module> NameError: name 'ntptime' isn't dUnhandled eefined xception in thread started by <bound_method> Traceback (most recent call last): File "flow/m5cloud.py", line 120, in _msg_deal_task AttributeError: 'M5TextBox' object has no attribute 'ticks_ms'
Edit #2 -- workaround:
I think the Init nttptime with host block needs to call "import ntptime" first. I fixed it by adding an execute block before the init. NTP works now.
RE: .m5f files only partially loading
@Devilstower see what I wrote here to see if it helps you.
If not, open the Chrome developer console and see what error is thrown when loading the m5f file in uiFlow.
RE: m5f file not loading anymore
@nash68 I fixed it. In the file, I just replaced
screen_set_brightnessand now it works.
RE: m5f file not loading anymore
I had the same happen to me recently. Some of my files were created a few months ago, but no longer work now. Looking at the Chrome developer console, there is this error when loading your file into uiFlow.
TypeError: Unknown block type: screen_set_stickc_brightness at Blockly.BlockSvg.Blockly.Block (scripts.3a80ddb4e78f6cf0af09.js:1) at new Blockly.BlockSvg (scripts.3a80ddb4e78f6cf0af09.js:1) at Blockly.WorkspaceSvg.newBlock (scripts.3a80ddb4e78f6cf0af09.js:1) at Object.Blockly.Xml.domToBlockHeadless_ (scripts.3a80ddb4e78f6cf0af09.js:1) at Object.Blockly.Xml.domToBlockHeadless_ (scripts.3a80ddb4e78f6cf0af09.js:1) at Object.Blockly.Xml.domToBlock (scripts.3a80ddb4e78f6cf0af09.js:1) at Object.Blockly.Xml.domToWorkspace (scripts.3a80ddb4e78f6cf0af09.js:1) at t.openM5F (main.5558dcaebe084d12c3eb.js:1) at t.M5F_create (main.5558dcaebe084d12c3eb.js:1) at FileReader.n.onload (main.5558dcaebe084d12c3eb.js:1)
I see the same error with my file. So something seems to have changed on the uiFlow side related to the StickC brightness block. @m5stack, please investigate this.
RE: cardkb GetKey comparison
getKey seems to return a hex value not decimal. So your if condition = 180, 181, 182, 183 is not being satisfied and the do is never executed. Try converting hex to decimal first, before your if statements. Or you can try comparing on the string values B4, B5, B6, B7 or 0xB4, 0xB5, 0xB6, 0xB7. I don’t have a CardKB to test with, so it might take some trial and error.