Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
查看: 3834|回復: 3
打印 上一主題 下一主題

ARDUINO+srf05程式

[複製鏈接]
跳轉到指定樓層
1#
發表於 2011-11-11 09:27:27 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
各位大大 有問題要求救 幫我看這程式哪裡要修改
我現在是用srf05感測器來遙控電視
這個網址裡的最底那那一個執行程式
用的是0018版本的arduino

謝謝  感恩~~

會出現這錯誤
In function 'void loop()':
error: 'lt' was not declared in this scope



程式如下
http://luckylarry.co.uk/arduino-projects/arduino-redefining-the-tv-remote/
這網址的最後一個執行程式
2#
發表於 2011-11-11 13:27:19 | 只看該作者
程式裡面的 >= or <= or && 顯示有問題, 自己改一下就OK! 例如 &lt;=  就是 <= 的意思.
3#
 樓主| 發表於 2011-11-11 14:05:30 | 只看該作者
改過之後還是出現這錯誤
21: error: IRremote.h: No such file or directory In function 'void loop()':
Bad error line: -4


是IRremote.h不被認同嗎?
4#
發表於 2011-11-12 21:24:12 | 只看該作者
回復 3# aoaodi


    這個程式,我compile就都沒問題,
你要把這個:
http://arcfn.com/files/IRremote.zip
所有檔案,解壓縮到libraries,
最好使用arduino-0022最新版本.
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-5-16 06:17 , Processed in 0.208789 second(s), 8 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表