フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

serial and arduino command

3 ビュー (過去 30 日間)
john white
john white 2019 年 5 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi
I want to read some datas with serial connection in the matlab and write some datas with arduino ,is it possible?
something like this:
s=serial('com5')
a=arduino('com5','uno')
for i=1:100
b=fscanf(s);
if b==2
writeDigitalPin(a,'D2',1)
end
pause(1)
end
se

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by