文件名称:bmp180
介绍说明--下载内容来自于网络,使用问题请自行百度
已经调试好的压力传感器bmp180程序,测试成功 温度和压力都准确。
单片机STM32F100
在主程序中#include "bmp180.h"
定义IO口:
#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)
定义全局变量:
s32 bmp180_temp,bmp180_presure //bmp180
主程序调用:
test_pressure_main()
即得到
温度bmp180_temp
压力bmp180_presure值-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
单片机STM32F100
在主程序中#include "bmp180.h"
定义IO口:
#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)
定义全局变量:
s32 bmp180_temp,bmp180_presure //bmp180
主程序调用:
test_pressure_main()
即得到
温度bmp180_temp
压力bmp180_presure值-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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bmp180/bmp180.c
bmp180/bmp180.h
bmp180/bmpi2c.c
bmp180/bmpi2c.h
bmp180
bmp180/bmp180.h
bmp180/bmpi2c.c
bmp180/bmpi2c.h
bmp180
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.