- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 5kb
- Update:
- 2014-03-24
- Downloads:
- 0 Times
- Uploaded by:
- 叶晞
Description: Has good pressure sensor bmp180 program debugging, testing, temperature and pressure are accurate success. STM32F100 microcontroller in the main program# include " bmp180.h" defined IO ports:# define I2C_SDA_PIN 7# define I2C_SCL_PIN 6# define I2C_GPIO GPIOB gpio_init (I2C_GPIO, I2C_SDA_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz) gpio_init (I2C_GPIO, I2C_SCL_PIN, GPIO_Mode_AF_OD | GPIO_Speed_50MHz) define global variables: s32 bmp180_temp, bmp180_presure // bmp180 main program calls: test_pressure_main () ie, get the value of the temperature bmp180_temp pressure bmp180_presure
To Search:
File list (Check if you may need any files):
bmp180\bmp180.c
......\bmp180.h
......\bmpi2c.c
......\bmpi2c.h
bmp180