Skip to content

Commit 1803326

Browse files
committed
FEAT v1.6.0 added
1 parent 1aa37bb commit 1803326

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

minimal_project_examples/arduino_foc_bldc_magnetic_spi/arduino_foc_bldc_magnetic_spi.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@
3737
*
3838
*/
3939
#include "src/BLDCMotor.h"
40-
#include "src/MagneticSensorI2C.h"
40+
#include "src/MagneticSensorSPI.h"
4141

4242
// SPI magnetic sensor instance
43-
//MagneticSensorSPI sensor = MagneticSensorSPI(10, 14, 0x3FFF);
43+
MagneticSensorSPI sensor = MagneticSensorSPI(10, 14, 0x3FFF);
4444

45-
MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0x0E, 4);
4645
// motor instance
4746
BLDCMotor motor = BLDCMotor(9, 5, 6, 11, 7);
4847

minimal_project_examples/arduino_foc_stepper_magnetic_i2c/arduino_foc_stepper_magnetic_i2c.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
// motor instance
4343
StepperMotor motor = StepperMotor(10, 6, 5, 9, 50, 8);
4444

45-
// motor instance
46-
BLDCMotor motor = BLDCMotor(9, 5, 6, 11, 7);
45+
// I2C magnetic sensor instance
46+
MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0x0E, 4);
4747

4848
void setup() {
4949

0 commit comments

Comments
 (0)