Skip to content

Commit bce3c0e

Browse files
authored
Merge pull request #14 from arduino/feature/preload
Reintroduced preload for future use.
2 parents 0ad03e8 + 44606ea commit bce3c0e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arduino/arduino.py

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def copy_sketch(source_path = '', destination_path = '.', name = None, overwrite
111111

112112
# RUNTIME
113113
def start(setup=None, loop=None, cleanup = None, preload = None):
114+
if preload is not None:
115+
preload()
114116
if setup is not None:
115117
setup()
116118
try:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
["arduino/examples/02_nano_esp32_advanced.py", "github:arduino/arduino-runtime-mpy/arduino/examples/02_nano_esp32_advanced.py"]
99
],
1010
"deps": [],
11-
"version": "0.1.0"
11+
"version": "0.4.0"
1212
}

0 commit comments

Comments
 (0)