diff --git a/arduino/arduino.py b/arduino/arduino.py index 890131a..ec8d30b 100644 --- a/arduino/arduino.py +++ b/arduino/arduino.py @@ -111,6 +111,8 @@ def copy_sketch(source_path = '', destination_path = '.', name = None, overwrite # RUNTIME def start(setup=None, loop=None, cleanup = None, preload = None): + if preload is not None: + preload() if setup is not None: setup() try: diff --git a/package.json b/package.json index 7f2b016..d9c61a2 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,5 @@ ["arduino/examples/02_nano_esp32_advanced.py", "github:arduino/arduino-runtime-mpy/arduino/examples/02_nano_esp32_advanced.py"] ], "deps": [], - "version": "0.1.0" + "version": "0.4.0" } \ No newline at end of file