You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Did you try all this with a version you compiled yourself from Git?

    As I said at the start, it turns out that the current version 1v47 has a bug where it reports the used memory incorrectly.

    When I try your function in a newer version it reports 26 memory units (=520 bytes) for Blinker.

    However: Looking at what's in Blinker, what happens is a new version of start and stop are created each time you instantiate it. If you put start and stop into Blinker.prototypeI think memory usage would be a lot better when blinking multiple LEDs.


Avatar for Gordon @Gordon started