• The example comes from here: http://www.espruino.com/Puck.js+InfraredĀ­.

    Here's the output of process.memory() before and after loading the code.

    process.env follows.

    process.memory()
    ={ free: 2217, usage: 33, total: 2250, history: 12,
    gc: 0, gctime: 3.23486328125, "stackEndAddress": 536924008, flash_start: 0, "flash_binary_end": 419924,
    "flash_code_start": 442368, flash_length: 524288 }


    | |_ ___ ___ _ ||___ ___
    | |_ -| . | _| | | | | . |
    |
    |_| || |_|||_|_|

        |_| espruino.com
    

    2v04 (c) 2019 G.Williams

    process.memory()
    ={ free: 2180, usage: 70, total: 2250, history: 46,
    gc: 0, gctime: 3.2958984375, "stackEndAddress": 536924008, flash_start: 0, "flash_binary_end": 419924,
    "flash_code_start": 442368, flash_length: 524288 }

    process.env
    ={
    VERSION: "2v04",
    GIT_COMMIT: "3956264e",
    BOARD: "PUCKJS",
    FLASH: 524288, RAM: 65536,
    SERIAL: "f4801353-1c650745",
    CONSOLE: "Bluetooth",
    MODULES: "Flash,Storage,hea" ... "S,crypto,neopixel",
    EXPTR: 536882364 }

    It is possible that the IR signals are not properly formulated i.e. more than a few transitions.
    But I doubt the stream of data would overflow d[].

About

Avatar for user104751 @user104751 started