- 8 -
The I2C
The D1 Mini module does not have a hardware I2C or TWI (Two Wire
Interface), but it is implemented in software. This means that any two digital
pins can be used as the I2C pins. By default, the I2C library uses GPIO4 as
SDA and GPIO5 as SCL (the datasheet specifies GPIO2 as SDA and GPIO14
as SCL). The maximum speed of the I2C clock is approximately 450kHz.
SPI
The D1 Mini module has one SPI connection available to the user, referred to
as HSPI. It can be used in both Slave and Master mode (in software!).
It uses:
- GPIO14 as a clock – CLK,
- GPIO12 as MISO,
- GPIO13 as MOSI and
- GPIO15 as Slave Select - SS.