有一个例子是UED下实现的,我现在想拿到UNO上使用,大家看看可行否?
这是例子的页面:http://blog.sina.com.cn/s/blog_6f72ff900101k8dc.html
我把这个电路和代码拿到UNO上来编译的时候,程序报错:
error: 'analogWriteResolution' was not declared in this scope
出错代码行的内容:
analogWriteResolution(12);// set the analog output resolution to 12 bit (4096 levels)
analogReadResolution(12); // set the analog input resolution to 12 bit
请问,这个出错的函数在UNO下有没有相对应的?
本帖最后由 shihaipeng04 于 2014-3-26 12:44 编辑
due的采样分辨率更高,用uno的话analogRead一样的,只是分辨率变低了而已。当然度数也要相应的处理一下。。从 1024 *4 要不后面程序就乱了 shihaipeng04 发表于 2014-3-26 12:42 static/image/common/back.gif
due的采样分辨率更高,用uno的话analogRead一样的,只是分辨率变低了而已。当然度数也要相应的处理一下。。 ...
实际上,我正要做一个低采样的波形 :D多谢~~
页:
[1]