Comm -> serial & parallel
Serial -> synchronous & asynchronous
Synchronous -> I2C & SPI
I2C pins -> SDA (DATA), SCL (CLCK) [half]
SPI pins -> SS (slave select), SCL, MOSI (Master out slave in), MISO (master in slave out) [full]
Half duplex (one at a time comm…sensor to micro or vice versa at a time) and full duplex
(simultaneously)
In ESP32, SDA – GPIO 21
SCL – GPIO 22
When it comes to comm…u make sure u connect the right pins