Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

serial and arduino command

조회 수: 1 (최근 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