Herunterladen Diese Seite drucken

Joy-it RPi-Explorer700 Anleitung Seite 12

Vorschau ausblenden Andere Handbücher für RPi-Explorer700:
3
wiringPi Programm:
Öffnen Sie die Konsole und geben Sie folgende Kommandos ein:
cd /Explorer700/BMP180/wiringPi
make
sudo ./BMP180
Erwartetes Ergebnis: Die Konsole wird folgende Informationen anzeigen:
BMP180 Test Program ...
Temperature: 34.20 C
Pressure: 1005.12 Pa
Altitude: 67.66 m
Drücken Sie die Tasten Strg+C um das Programm zu beenden.
Python Programm:
Öffnen Sie die Konsole und geben Sie folgende Kommandos ein:
cd /Explorer700/BMP180/python
sudo python BMP180_example.py
Erwartetes Ergebnis: Die Konsole wird folgende Informationen anzeigen:
BMP180 Test Program ...
Temperature: 34.20 C
Pressure: 1005.12 Pa
Altitude: 67.66 m
Ausgabe 22.09.2017
Copyright by Joy-IT
RPi - Explorer700
12
loading