adafruit_binascii
¶
Helpers for conversions between binary and ASCII
Author(s): Paul Sokolovsky, Brent Rubell
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
- exception adafruit_binascii.Error¶
Exception raised on errors. These are usually programming errors.
- adafruit_binascii.a2b_base64(b64_data: array | bytearray | bytes | memoryview | rgbmatrix.RGBMatrix | ulab.numpy.ndarray) bytes ¶
Convert a block of base64 data back to binary and return the binary data.
- Parameters:
b64_data (bytes) – Base64 data.
- adafruit_binascii.b2a_base64(bin_data: array | bytearray | bytes | memoryview | rgbmatrix.RGBMatrix | ulab.numpy.ndarray) bytes ¶
Convert binary data to a line of ASCII characters in base64 coding.
- Parameters:
bin_data (ReadableBuffer) – Binary data string, as bytes