艰苦奋斗 发表于 2015-10-14 16:44 static/image/common/back.gif
看手册,DRDY应该是读数据准备好的中断引脚,当要读取的数据准备好后,DRDY引脚会有125us的低电平,CPU可 ...
谢谢指导,arduino和电子方面刚入门。
楼主好,我的HMC5883L传感器返回到 数值不变啊,怎么回事啊
谢谢分享,宝贵的资料。
感谢楼主分享
xx:):):):):):):):):):):):):)
哈哈,多谢分享分享:D
Arduino有许多类型板子,具体对那一种需要告诉!
zjhyhky 发表于 2013-1-22 22:46 static/image/common/back.gif
1.0以上版本具体如何改库
没有人解答,我自己百度百度,终于解决了。方法如下:
.....怎么打开cpp文件?:'(
出错啦!!!!!!!!!!!!!!!!!!:@
Arduino:1.7.10 (Windows 8.1), 板:"Arduino Uno"
HMC5883L.cpp: In member function 'void HMC5883L::Write(int, int)':
HMC5883L.cpp:114:8: error: 'class TwoWire' has no member named 'send'
Wire.send(address);
^
HMC5883L.cpp:115:8: error: 'class TwoWire' has no member named 'send'
Wire.send(data);
^
HMC5883L.cpp: In member function 'uint8_t* HMC5883L::Read(int, int)':
HMC5883L.cpp:122:8: error: 'class TwoWire' has no member named 'send'
Wire.send(address);
^
HMC5883L.cpp:133:22: error: 'class TwoWire' has no member named 'receive'
buffer = Wire.receive();
^
编译有误。
报告将会包含更多的信息
"在编译时,输出详细信息"
在 文件>首选项 中启用
WProgram.h 这是用来做什么的????
为啥我串口的数据一直不变呢?C:\Users\zcx\Desktop\S@}{GNPZ_0C}U)S0HJK_M5K.png
cosailer 发表于 2013-2-16 06:14
最近实在太忙,就先单独把我的八字校准程序贴上来。
其实很简单,我没去管Z轴,如果想要更高的精度, ...
能否把完整的校准、读取、串口打印程序给出来呀,我复制过去老是报错,谢谢您:D
请问,为什么旋转角度后,串口读数没有变化
正在做小车,学习。。。。。