mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
This adds an ANSI-rendered pinout for the WeAct Studio RP2350B Core board. Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
11 lines
278 B
Python
11 lines
278 B
Python
import sys
|
|
import zlib
|
|
|
|
data_str = sys.stdin.read()
|
|
compressed = zlib.compress(bytes(data_str, "utf-8"), wbits=10)
|
|
print(
|
|
f"{len(data_str) / len(compressed):.1f}x smaller: uncompressed={len(data_str)}, compressed={len(compressed)}",
|
|
file=sys.stderr,
|
|
)
|
|
print(compressed)
|