SSSUP
/
sample_pressure-sensor_bmp180_for_nucleo
気圧センサの動作確認プログラム(nucleo版)
Revision 3:d0a1b173db2e, committed 2020-05-30
- Comitter:
- saeichi
- Date:
- Sat May 30 14:51:22 2020 +0000
- Parent:
- 2:2de739f5032b
- Commit message:
- nucleo_bmp180
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2de739f5032b -r d0a1b173db2e main.cpp --- a/main.cpp Mon Jul 02 07:44:35 2018 +0000 +++ b/main.cpp Sat May 30 14:51:22 2020 +0000 @@ -1,12 +1,12 @@ #include "mbed.h" #include "BMP180.h" -#define PIN_SDA p28 -#define PIN_SDL p27 -Serial pc(USBTX,USBRX,921600); +#define PIN_SDA D4 +#define PIN_SCL D5 +Serial pc(SERIAL_TX,SERIAL_RX,921600); int main(){ - BMP180 bmp180(PIN_SDA,PIN_SDL); + BMP180 bmp180(PIN_SDA,PIN_SCL); float pressure,temperature; printf("\rstart!\n\r"); bmp180.Initialize(27,BMP180_OSS_ULTRA_LOW_POWER);//27は府大の海抜高度