Skip to content

Commit b472502

Browse files
committed
Typo fixes
1 parent 443d075 commit b472502

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

BMP180.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
#include <fcntl.h>
66
#include <math.h>
77

8-
void main()
8+
int main()
99
{
1010
// Create I2C bus
1111
char *bus = "/dev/i2c-2";
12-
file = open(bus, O_RDWR));
13-
if((file < 0)
14-
{
12+
int file = open(bus, O_RDWR);
13+
if(file < 0){
1514
printf("Failed to open the bus.\n");
1615
exit(1);
1716
}

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
all:
2+
gcc -Wall -Wextra BMP180.c -o bmp180
3+
clean:
4+
rm bmp180

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ This tutorial uses the following devices:
1818

1919
First, plug the BMP180 sensor into the breakout. Using the jumper wires and resistors, wire it up to the BeagleBone according to the following schematic:
2020

21-
![BB_BME180_Schematic](img/BME180_Outline.png)
21+
![BB_BMP180_Schematic](img/BMP180_Outline.png)
2222

23-
If you know that your BME180 breakout includes pull-up resistors, you can opt to remove them from your breadboard. If you don't know what a pull-up resistor is, don't worry. We'll explain it later.
23+
Note that your sensor breakout may not look like the one in the picture. That's perfectly fine, just make sure that you're plugging the right wires into the right ports (VIN, GND, SCA, and SCL). If you know that your BMP180 breakout includes pull-up resistors, you can opt to remove them from your breadboard. If you don't know what a pull-up resistor is, don't worry. We'll explain it later.
2424

2525
Once you've connected everything, turn on the BeagleBone and connect to it via SSH. To verify that you've installed the sensor correctly, run the following command:
2626

@@ -34,7 +34,7 @@ You should see a screen similiar to the following:
3434
//todo insert pic
3535

3636

37-
If you see `0x77`, this means that the BME180 is correctly installed!
37+
If you see `0x77`, this means that the BMP180 is correctly installed!
3838

3939
Next, clone this repository:
4040

@@ -54,7 +54,7 @@ Finally, run it:
5454

5555

5656
```bash
57-
./bme180
57+
./bmp180
5858
```
5959

6060
And you'll see an output looking like:
File renamed without changes.

0 commit comments

Comments
 (0)