Class SDCard

SD 存储设备

Hierarchy

  • SDCard

Constructors

Properties

Constructors

  • 新建SPI通信的SD存储卡设备

    Parameters

    • spiBus: SpiBus

      spi总线对象

    • Optional options: {
          speed?: number;
      }
      • Optional speed?: number

        总线速度,默认 20_000_000 (即20MHz)

    Returns SDCard

Properties

inuse: boolean

本设备是否正在使用中?

Description

本存储设备被挂载到文件系统,则此值为true;如果没有挂载,则为false