Skip to content

Commit

Permalink
Merge pull request jrowberg#327 from per1234/example-typos
Browse files Browse the repository at this point in the history
Fix typos in example sketches
  • Loading branch information
jrowberg committed Sep 23, 2017
2 parents 079bdcb + 3b4c8bd commit d4cdc4c
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Arduino/ADS1115/examples/ADS1115_single/ADS1115_single.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void setup() {
// Slow things down so that we can see that the "poll for conversion" code works
adc0.setRate(ADS1115_RATE_8);

// Set the gain (PGA) +/- 6.144v
// Set the gain (PGA) +/- 6.144V
// Note that any analog input must be higher than –0.3V and less than VDD +0.3
adc0.setGain(ADS1115_PGA_6P144);
// ALERT/RDY pin will indicate when conversion is ready
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(mag.testConnection() ? "AK8975 connection successful" : "AK8975 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(mag.testConnection() ? "AK8975 connection successful" : "AK8975 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/AK8975/examples/AK8975_raw/AK8975_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(mag.testConnection() ? "AK8975 connection successful" : "AK8975 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/BMA150/examples/BMA150_raw/BMA150_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(accel.testConnection() ? "BMA150 connection successful" : "BMA150 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/HMC5843/examples/HMC5843_raw/HMC5843_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(mag.testConnection() ? "HMC5843 connection successful" : "HMC5843 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/HMC5883L/examples/HMC5883L_raw/HMC5883L_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(mag.testConnection() ? "HMC5883L connection successful" : "HMC5883L connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/ITG3200/examples/ITG3200_raw/ITG3200_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(gyro.testConnection() ? "ITG3200 connection successful" : "ITG3200 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
10 changes: 5 additions & 5 deletions Arduino/LSM303DLHC/examples/LSM303DLHC_test/LSM303DLHC_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void setup() {
// set scale to 2Gs
accelMag.setAccelFullScale(2);

// set accel data rate to 200hz
// set accel data rate to 200Hz
accelMag.setAccelOutputDataRate(200);

// test scale
Expand All @@ -82,7 +82,7 @@ void setup() {
Serial.print("Accel Output Data Rate: ");
Serial.println(accelMag.getAccelOutputDataRate());

// set mag data rate to 220hz
// set mag data rate to 220Hz
accelMag.setMagOutputDataRate(220);

// test mag data rate
Expand All @@ -108,7 +108,7 @@ void loop() {
accelMag.getAcceleration(&ax, &ay, &az);
accelMag.getMag(&mx, &my, &mz);

// Serial.print("Accelation:\t");
// Serial.print("Acceleration:\t");
// Serial.print(ax,HEX); Serial.print("\t");
// Serial.print(ay,HEX); Serial.print("\t");
// Serial.print(az,HEX);
Expand All @@ -118,7 +118,7 @@ void loop() {
// Serial.print(my,HEX); Serial.print("\t");
// Serial.println(mz,HEX);

// Serial.print("Accelation:\t");
// Serial.print("Acceleration:\t");
// Serial.print(ax); Serial.print("\t");
// Serial.print(ay); Serial.print("\t");
// Serial.print(az);
Expand All @@ -128,7 +128,7 @@ void loop() {
// Serial.print(my); Serial.print("\t");
// Serial.println(mz);

Serial.print("Accelation:\t");
Serial.print("Acceleration:\t");
Serial.print(ax*0.0000625F,4); Serial.print("\t");
Serial.print(ay*0.0000625F,4); Serial.print("\t");
Serial.print(az*0.0000625F,4);
Expand Down
2 changes: 1 addition & 1 deletion Arduino/MPU6050/examples/IMU_Zero/IMU_Zero.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Z acceleration, for which it will report 16384 (that is, 2^14). Your device
probably won't do quite this well, but good offsets will all get the baseline
outputs close to these target values.
Put the MPU6050 in a flat and horizontal surface, and leave it operating for
Put the MPU6050 on a flat and horizontal surface, and leave it operating for
5-10 minutes so its temperature gets stabilized.
Run this program. A "----- done -----" line will indicate that it has done its best.
Expand Down
4 changes: 2 additions & 2 deletions Arduino/MPU6050/examples/MPU6050_DMP6/MPU6050_DMP6.ino
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ void setup() {
Serial.begin(115200);
while (!Serial); // wait for Leonardo enumeration, others continue immediately

// NOTE: 8MHz or slower host processors, like the Teensy @ 3.3v or Ardunio
// Pro Mini running at 3.3v, cannot handle this baud rate reliably due to
// NOTE: 8MHz or slower host processors, like the Teensy @ 3.3V or Arduino
// Pro Mini running at 3.3V, cannot handle this baud rate reliably due to
// the baud timing being too misaligned with processor ticks. You must use
// 38400 or slower in these cases, or use some kind of external separate
// crystal solution for the UART timer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ void setup() {
// (115200 chosen because it is required for Teapot Demo output, but it's
// really up to you depending on your project)
Serial.begin(115200);
// NOTE: 8MHz or slower host processors, like the Teensy @ 3.3v or Ardunio
// Pro Mini running at 3.3v, cannot handle this baud rate reliably due to
// NOTE: 8MHz or slower host processors, like the Teensy @ 3.3V or Arduino
// Pro Mini running at 3.3V, cannot handle this baud rate reliably due to
// the baud timing being too misaligned with processor ticks. You must use
// 38400 or slower in these cases, or use some kind of external separate
// crystal solution for the UART timer.
Expand Down
2 changes: 1 addition & 1 deletion Arduino/MPU6050/examples/MPU6050_raw/MPU6050_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void setup() {
Serial.print("\n");
*/

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/MPU9150/examples/MPU9150_raw/MPU9150_raw.ino
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void setup() {
Serial.println("Testing device connections...");
Serial.println(accelGyroMag.testConnection() ? "MPU9150 connection successful" : "MPU9150 connection failed");

// configure Arduino LED for
// configure Arduino LED pin for output
pinMode(LED_PIN, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion Arduino/MS5803/examples/test_MS5803/test_MS5803.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ uint32_t wake_time = millis();
void setup() {
Serial.begin(57600);
Wire.begin();
// Start up and get Calubration constants.
// Start up and get Calibration constants.
presstemp.initialize(MS_MODEL);
if ( presstemp.testConnection() ) Serial.println("We are communicating with MS5803 via I2C.");
else Serial.println("I2C Communications with MS5803 failed.");
Expand Down

0 comments on commit d4cdc4c

Please sign in to comment.