Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Jan 16, 2024
1 parent f1fc9a2 commit 2b4c625
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ See examples, use with care
- reorder code in read(), would that save some micros.?
- first all ax, then ay etc
- footprint / performance gain?
- make enum for sensitivity Accel?
- make enum for sensitivity Gyro?


#### Wont
Expand Down
2 changes: 1 addition & 1 deletion examples/GY521_angle/GY521_angle.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void setup()
while (sensor.wakeup() == false)
{
Serial.print(millis());
Serial.println("\tCould not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
delay(1000);
}
sensor.setAccelSensitivity(2); // 8g
Expand Down
4 changes: 2 additions & 2 deletions examples/GY521_performance/GY521_performance.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "GY521.h"


GY521 sensor(0x69);
GY521 sensor(0x68);

uint32_t counter = 0;

Expand All @@ -26,7 +26,7 @@ void setup()
while (sensor.wakeup() == false)
{
Serial.print(millis());
Serial.println("\tCould not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
delay(1000);
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/GY521_pitch_roll_yaw/GY521_pitch_roll_yaw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void setup()
while (sensor.wakeup() == false)
{
Serial.print(millis());
Serial.println("\tCould not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
delay(1000);
}
sensor.setAccelSensitivity(2); // 8g
Expand Down
4 changes: 2 additions & 2 deletions examples/GY521_readCalibration_1/GY521_readCalibration_1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "GY521.h"

GY521 sensor(0x69);
GY521 sensor(0x68);

uint32_t counter = 0;

Expand All @@ -28,7 +28,7 @@ void setup()
delay(100);
if (sensor.wakeup() == false)
{
Serial.println("Could not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
}
// adjust when needed.
sensor.setAccelSensitivity(0); // 2g
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void setup()
delay(100);
if (sensor.wakeup() == false)
{
Serial.println("Could not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
}
// adjust when needed.
sensor.setAccelSensitivity(0); // 2g
Expand Down
4 changes: 2 additions & 2 deletions examples/GY521_test_1/GY521_test_1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "GY521.h"

GY521 sensor(0x69);
GY521 sensor(0x68);

uint32_t counter = 0;

Expand All @@ -26,7 +26,7 @@ void setup()
while (sensor.wakeup() == false)
{
Serial.print(millis());
Serial.println("\tCould not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
delay(1000);
}
sensor.setAccelSensitivity(0); // 2g
Expand Down
4 changes: 2 additions & 2 deletions examples/GY521_test_2/GY521_test_2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "GY521.h"

GY521 sensor(0x69);
GY521 sensor(0x68);


void setup()
Expand All @@ -23,7 +23,7 @@ void setup()
delay(100);
if (sensor.wakeup() == false)
{
Serial.println("Could not connect to GY521");
Serial.println("\tCould not connect to GY521: please check the GY521 address (0x68/0x69)");
}

Serial.println("ACCEL TEST");
Expand Down
4 changes: 2 additions & 2 deletions examples/GY521_two_sensors/GY521_two_sensors.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void setup()
while (sensor1.wakeup() == false)
{
Serial.print(millis());
Serial.println("\tCould not connect to sensor1");
Serial.println("\tCould not connect to sensor1: please check the GY521 address (0x68/0x69)");
delay(1000);
}
sensor1.setAccelSensitivity(2); // 8g
Expand All @@ -50,7 +50,7 @@ void setup()
while (sensor2.wakeup() == false)
{
Serial.print(millis());
Serial.println("\tCould not connect to sensor2");
Serial.println("\tCould not connect to sensor2: please check the GY521 address (0x68/0x69)");
delay(1000);
}
sensor2.setAccelSensitivity(2); // 8g
Expand Down

0 comments on commit 2b4c625

Please sign in to comment.