diff --git a/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md b/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md index fb42a0b..4fb7b81 100644 --- a/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md +++ b/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md @@ -65,7 +65,7 @@ void setup(){ } ``` -If you wish to use more than one magnetic sensor using SPI interface, make sure your sensors have different addresses, here is a simple example: +If you wish to use more than one magnetic sensor using an I2C interface, make sure your sensors have different addresses, here is a simple example: ```cpp MagneticSensorI2C sensor1 = MagneticSensorI2C(0x36, 12, 0x0E, 4); MagneticSensorI2C sensor2 = MagneticSensorI2C(0x37, 12, 0x0E, 4); @@ -138,7 +138,7 @@ There are two ways to use magnetic sensor implemented within this library: ### Position sensor for FOC algorithm -To use the ensor with the FOC algorithm implemented in this library, once when you have initialized `sensor.init()` you just need to link it to the BLDC motor by executing: +To use the sensor with the FOC algorithm implemented in this library, once when you have initialized `sensor.init()` you just need to link it to the BLDC motor by executing: ```cpp motor.linkSensor(&sensor); ```