I want to operate 2 PaHUB units on one Grove I2C port (M5Stick C). I know the power supply problem. I want to know how to tell UIFLOW the address of the 2nd PaHub?
Thanks for the tip. I hadn't thought of that. I thought I would have to construct my own block.
I would like to try out the possibilities and limits of Blockly.
i have tried further and found that the value is not given as text after all. But if I convert it to text and then count the number of "." I get the desired result. In Python there is isinstance() for type determination. But I did not find this in Blockly.
Thank you Thrasher,
I know how to round up. I am interested in testing whether a variable contains an integer or a floating point number. I wanted to cut off the fractional part by converting it to integer, subtract the integer from the number of unknown type and if the result is 0 then it is an integer.
But since the value is probably passed as a string I have to find another way.
I am trying to convert a floating point number into an integer or to test if the number is a floating point number. Both attempts end in an error message as soon as a floating point number is really present.
Here you should see pictures of Blocky, but doesn't work.
Does anyone have a solution or what am I doing wrong?
Thanks a lot
I have found my mistake. A string was passed to the function and not a float.
Now it plays as it should.
Problem partial solved :)
I put my old Handy and the M5Stick C very near together. So I can recive the Config-Site from the Stick and put it to login in my home Wlan.
Now I can program the Stick with http://flow.m5stack.com/ :))
But what is with USB?