• I experiment with the single-button-combination-lock example.
    But I want to hide the code array in an external file and use it with require:

    var code_code = require('combination_lock_code_code');
    // var code = [3,1,2];
    var code = code_code.code;

    From the documentation I learned that I have to change the communication settings, so I entered:

    But I got some:
    ERROR: SD card must be setup with E.connectSDCard first
    WARNING: Module "combination_lock_code_code" not found

    So: how can I use require to load some local module?
    TIA, Uli

    Update: just found where to put it: the MODULES subdirectory on the Project Path.


Avatar for UliMerkel @UliMerkel started