フィルターのクリア

Problem with using matlab to control Arduino Uno

2 ビュー (過去 30 日間)
Wenbo Li
Wenbo Li 2015 年 2 月 20 日
回答済み: zyselvis 2015 年 4 月 7 日
I attampted to use matlab to control my Arduino Uno board, and I downloaded a file which is provided by matlab center, here follows the link.
I followed the 'readme.txt' step by step, but when I trying to upload upload the file 'adioes.pde' to my Arduino Uno board, the problem happened. Here follows the erro from the Arduino IDE:
adioes.pde: In function 'void setup()': adioes.pde:60:6: error: redefinition of 'void setup()' sketch_feb20a.ino:1:6: error: 'void setup()' previously defined here adioes.pde: In function 'void loop()': adioes.pde:66:6: error: redefinition of 'void loop()' sketch_feb20a.ino:6:6: error: 'void loop()' previously defined here Error compiling.
If someone knows, please tell me. Thanks.

回答 (1 件)

zyselvis
zyselvis 2015 年 4 月 7 日
Do you have two tabs in your sketch? When you drag things into the environment, it adds it to the current sketch when you may want to simply open it.

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by