Created
December 28, 2017 04:54
-
-
Save elktros/fbd3a210b6d25b3637d50d988aec41df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% create an arduino object | |
a = arduino('com8', 'Mega2560'); | |
% start the loop to blink led for 10 seconds | |
for i = 1:5 | |
writeDigitalPin(a, 'D13', 1); | |
pause(1); | |
writeDigitalPin(a, 'D13', 0); | |
pause(1); | |
end | |
%end communication with arduino | |
clear a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment