15631| 12
|
Arduino多线程库文件,标题只能这么详细了 |
如题,这个是一个很强大的多线程库文件。 具体可以百度下,或者点击这:点我 例程里跑了2个while(1) 很好很强大 很好很强大(我是回音,是回音,回音,音) ProtoThreads.zip 要是下载了不顶一个可不是好孩子啊 |
Ricky 发表于 2014-3-26 14:12 好吧,程序如下:
|
用这个库,复制代码,报错了是什么原因?Arduino:1.6.6 (Windows 10), 开发板:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" C:\Users\Administrator\Documents\Arduino\sketch_apr10b\sketch_apr10b.ino: In function 'int protothread1(pt*)': sketch_apr10b:5: error: 'int protothread1(pt*)' was declared 'extern' and later 'static' [-fpermissive] static int protothread1(struct pt *pt) //绾跨▼1锛屾帶鍒剁伅1 ^ sketch_apr10b:5: error: previous declaration of 'int protothread1(pt*)' [-fpermissive] static int protothread1(struct pt *pt) //绾跨▼1锛屾帶鍒剁伅1 ^ C:\Users\Administrator\Documents\Arduino\sketch_apr10b\sketch_apr10b.ino: In function 'int protothread2(pt*)': sketch_apr10b:19: error: 'int protothread2(pt*)' was declared 'extern' and later 'static' [-fpermissive] static int protothread2(struct pt *pt) //绾跨▼2锛屾帶鍒剁伅2 ^ sketch_apr10b:6: error: previous declaration of 'int protothread2(pt*)' [-fpermissive] { ^ exit status 1 'int protothread1(pt*)' was declared 'extern' and later 'static' [-fpermissive] 报告将会包含更多的信息 "在编译时,输出详细信息" 在 文件>首选项 中启用 |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed