STM32F1 i2c

Experiencias com o i2c no microcontrolador STMF103.

#include <Wire.h>

//use IIC2
TwoWire WIRE2 (2, I2C_FAST_MODE);
#define Wire WIRE2

 

#error “Something is trying to include Wire_slave.h when Wire.h is already included, they are mutually exclusive”