From 8d4d0b536ca57017ea0a439adbfa05523b0fd46f Mon Sep 17 00:00:00 2001 From: zbas Date: Mon, 17 Jun 2024 10:54:52 +0100 Subject: [PATCH] Update magnetic_sensor_i2c.md Ensure all references to sensor are updated to as5600 for this example. --- .../code/sensors/magnetic/magnetic_sensor_i2c.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8db4b65..5cddfc1 100644 --- a/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md +++ b/docs/simplefoc_library/code/sensors/magnetic/magnetic_sensor_i2c.md @@ -189,10 +189,10 @@ void setup() { void loop() { // IMPORTANT - call as frequently as possible // update the sensor values - sensor.update(); + as5600.update(); // display the angle and the angular velocity to the terminal Serial.print(as5600.getAngle()); Serial.print("\t"); Serial.println(as5600.getVelocity()); } -``` \ No newline at end of file +```