圧力センサー
Dependencies: mbed
main.cpp@5:9cdca47368e5, 2019-07-24 (annotated)
- Committer:
- takepiyo
- Date:
- Wed Jul 24 12:50:17 2019 +0000
- Revision:
- 5:9cdca47368e5
- Parent:
- 4:ad09eb6ed2cb
- Child:
- 6:b6823af285de
test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takepiyo | 0:f2d2dc1e207d | 1 | #include "mbed.h" |
takepiyo | 0:f2d2dc1e207d | 2 | #include "bme280.h" |
takepiyo | 4:ad09eb6ed2cb | 3 | //おっぱい |
takepiyo | 3:cec0bf691696 | 4 | |
takepiyo | 3:cec0bf691696 | 5 | |
takepiyo | 0:f2d2dc1e207d | 6 | int main() |
takepiyo | 0:f2d2dc1e207d | 7 | { |
takepiyo | 0:f2d2dc1e207d | 8 | BME280 bme280; |
takepiyo | 0:f2d2dc1e207d | 9 | Serial pc(USBTX,USBRX); |
takepiyo | 0:f2d2dc1e207d | 10 | |
takepiyo | 0:f2d2dc1e207d | 11 | while(1) |
takepiyo | 0:f2d2dc1e207d | 12 | { |
takepiyo | 0:f2d2dc1e207d | 13 | |
takepiyo | 5:9cdca47368e5 | 14 | pc.printf("%04.2f\n",bme280.getPressure()); |
takepiyo | 5:9cdca47368e5 | 15 | wait(0.1); |
takepiyo | 0:f2d2dc1e207d | 16 | } |
takepiyo | 0:f2d2dc1e207d | 17 | } |