下你所需,载你所想!
汇集开发技术源码资料

HMC5883L范例

:73.284KB :1 :2022-09-19 17:33:27

部分简介

HMC5883L范例如果开发者对于本文件有需要的可以参考

#include
#include "HMC5883L.h"
#include "ControlI2C.h"

int main(void)
{
enum Status status;
status = HMC5883L_Init();
if(status != SUCCESS){
printf("Initialize HMC5883L failed!\n");
return 0;
}
// if config failed, please step into this function, give each function call a short delay time, it will work.
status = HMC5883L_Config();
if(status != SUCCESS){
printf("Config HMC5883L failed!\n");
return 0;。

热门推荐

相关文章