User manual
Ausgabe 07.12.2016 Copyright by Joy-IT 12
3
RPi - Explorer700
7. BMP180 sample programs- Barometer Demos
bcm2835 program:
Enter the Linux terminal, and run the following commands:
The command for compiling the program:
The command for execung the program:
Expected result: The terminal will display the following informaon:
Press the keys Ctrl+C to end the program.
wiringPi program:
Enter the Linux terminal, and run the following commands:
The command for compiling the program:
The command for execung the program:
Expected result: The terminal will display the following informaon:
Press the keys Ctrl+C to end the program.
pi@raspberrypi ~/Explorer700/BMP180/bcm2835 $ sudo ./BMP180
pi@raspberrypi ~/Explorer700/BMP180/bcm2835 $ make
BMP180 Test Program ...
Temperature: 34.20 C
Pressure: 1005.12 Pa
Altude: 67.66 m
BMP180 Test Program ...
Temperature: 34.20 C
Pressure: 1005.12 Pa
Altude: 67.66 m
pi@raspberrypi ~/Explorer700/BMP180/wiringPi $ sudo ./BMP180
pi@raspberrypi ~/Explorer700/BMP180/wiringPi $ make