This repository was archived by the owner on May 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 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:
110110 ` ` `
111111
112112
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.
115115
116116Examine [this document][blynk-esp32-readme] to get more details how to compile * .py files into * .mpy bytecode
117117
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+
118124*** 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
120126` ` ` bash
121127docker cp micropython:/micropython/ports/esp8266/build/frozen_mpy/blynklib.mpy blynklib.mpy
122128` ` `
123129
124- After * .mpy files can be placed to ** /lib** directory of esp8266 board with ** ampy** tool and simply imported
125- as standard library
126-
127130
128131# # Wifi Connection
129132Micropython allows to use core *** network*** module for WiFi connection setup.
You can’t perform that action at this time.
0 commit comments