This repository was archived by the owner on May 7, 2025. It is now read-only.
File tree 1 file changed +9
-6
lines changed 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -110,20 +110,23 @@ For custom esp8266 firmware build creation:
110
110
` ` `
111
111
112
112
113
- # ## Frozen module inside firmware
114
- Frozen bytecode uses the cross compiler to convert the source to bytecode which is then stored with the firmware.
113
+ # ## Frozen bytecode
114
+ Frozen bytecode approach uses the cross compiler to convert the source to bytecode which is then stored with the firmware.
115
115
116
116
Examine [this document][blynk-esp32-readme] to get more details how to compile * .py files into * .mpy bytecode
117
117
118
+ After * .mpy files can be placed to ** /lib** directory of esp8266 board with ** ampy** tool. Libraries * .mpy can be simply imported
119
+ in the same manner as standard * .py library
120
+ ` ` ` python
121
+ import blynklib
122
+ ` ` `
123
+
118
124
*** Note!! *** During custom firmware creation your libraries will be converted and adopted to esp8266 environment
119
- automatically. So you can create custom build and then just copy * .mpy files from docker system
125
+ automatically. So you can create custom build and then just copy * .mpy files from docker system to local
120
126
` ` ` bash
121
127
docker cp micropython:/micropython/ports/esp8266/build/frozen_mpy/blynklib.mpy blynklib.mpy
122
128
` ` `
123
129
124
- After * .mpy files can be placed to ** /lib** directory of esp8266 board with ** ampy** tool and simply imported
125
- as standard library
126
-
127
130
128
131
# # Wifi Connection
129
132
Micropython allows to use core *** network*** module for WiFi connection setup.
You can’t perform that action at this time.
0 commit comments