From 037651283ddee48d0d2cad833fa40817a9faf635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20M=C3=A9ndez?= Date: Thu, 27 Nov 2025 12:38:06 -0300 Subject: [PATCH 1/2] minor fix fix typo replacing SPI with I2C in I2C page --- .../code/sensors/magnetic/magnetic_sensor_i2c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..1071f95 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); From 3ed57aec9589ab6258426f460163edd4049b9e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20M=C3=A9ndez?= Date: Thu, 27 Nov 2025 12:41:55 -0300 Subject: [PATCH 2/2] fix typo --- .../code/sensors/magnetic/magnetic_sensor_i2c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1071f95..4fb7b81 100644 --- a/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md +++ b/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md @@ -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); ```