You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
15 lines
182 B
Python
15 lines
182 B
Python
|
|
# String operations which don't require allocation
|
||
|
|
import micropython
|
||
|
|
|
||
|
|
micropython.heap_lock()
|
||
|
|
|
||
|
|
b"" + b""
|
||
|
|
b"" + b"1"
|
||
|
|
b"2" + b""
|
||
|
|
|
||
|
|
"" + ""
|
||
|
|
"" + "1"
|
||
|
|
"2" + ""
|
||
|
|
|
||
|
|
micropython.heap_unlock()
|