This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

pyb.Flash

Classes

Flash

Create and return a block device that represents the flash device presented

Module Contents

class pyb.Flash.Flash

Create and return a block device that represents the flash device presented to the USB mass storage interface.

It includes a virtual partition table at the start, and the actual flash starts at block 0x100.

This constructor is deprecated and will be removed in a future version of MicroPython.

ioctl(cmd, arg) Incomplete

These methods implement the simple and extended block protocol defined by vfs.AbstractBlockDev.

readblocks(block_num, buf, offset: int | None = 0) Incomplete
writeblocks(block_num, buf, offset: int | None = 0) Incomplete