-
• #2
And, if I disabled NEOPIXEL and GRAPHICS in "board.py", how to calculate how many variables could be add to "variables" item, thanks.
-
• #3
Hi,
Maybe just try:
["arr","JsVar","An array"]
not:
["arr","JsVarArray","An array"]
JsVarArray
is when you want all the arguments to the function to be put in an array, and for you to receive that array.For example with the code you're using
require("crypto").test(1,2,3);
would cause jsvGetArrayLength to return 3 because there are 3 arguments -
• #4
Hello Gordon,
Thanks for teaching me. I will continue coding. :D
Hi,
I would like to help Espruino enable to do more things, so I try to add other functions to it.
But when I coding, jsvGetArrayLength return 1 all the time.
Could anyone teach me for this, thanks.
Here is the test code(added in the "jswrap_crypto.c"):
And also copied from "jsvArrayJoin", and the while will run once.
After make, directly run on the Ubuntu 18.04, the test code is:
Or