Skip to content

Commit fda3246

Browse files
authored
Merge pull request #45 from naikymen/patch-2
I2C typo - minor fix
2 parents b4ef10c + 3ed57ae commit fda3246

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void setup(){
6565
}
6666
```
6767

68-
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:
68+
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:
6969
```cpp
7070
MagneticSensorI2C sensor1 = MagneticSensorI2C(0x36, 12, 0x0E, 4);
7171
MagneticSensorI2C sensor2 = MagneticSensorI2C(0x37, 12, 0x0E, 4);
@@ -138,7 +138,7 @@ There are two ways to use magnetic sensor implemented within this library:
138138

139139
### Position sensor for FOC algorithm
140140

141-
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:
141+
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:
142142
```cpp
143143
motor.linkSensor(&sensor);
144144
```

0 commit comments

Comments
 (0)