Replies: 1 comment
-
Hi, As I understand it, Microsoft Make:code actually does some compilation on the code you write, so it's going to be a bit faster than running the JS which is interpreted from the text on the fly. Espruino has a bunch of options though...
There are other options too, but those are going to be the easiest/best. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a display multiplexer by bit banging a 16 bit register to an external serial to parallel shift register. The issue is that the code is running very slowly! I have tried to see how fast the device will run by writing a very simple while loop which sets and clears a pin (while(true){digitalWrite(D6,0);digitalWrite(D6,1):}) On the Espurino this code produces a square wave of about 4kHz. The same code running on a MicroBit using Make Code produces a square wave of about 300kHz. If i flash the Micro Bit with Espurino and run the code i get 4kHz. The issue must therefore be the Espurino code rather than the hardware. Does anyone have any thoughts or ideas as to how i can improve the performance. Thanks
Beta Was this translation helpful? Give feedback.
All reactions