Skip to main content

spiflash.chipid()

Returns the identity code of the SPI flash chip

Availability

Device

Returns

Integer — the SPI flash chip’s standard ID code

Description

This method provides the SPI flash device identification as a three-byte value. The most significant byte is the manufacturer identification code, which is provided by the Joint Electronic Device Engineering Council (JEDEC). The remaining two bytes are set by the device manufacturer — the datasheet for the device you have selected should have all the details.