Blink LEDs using arduino!!
Show older comments
Hi guys, I want to make like this code using matlab ...
void loop() {
for (int thisPin = 2; thisPin < 8; thisPin++) {
digitalWrite(thisPin, HIGH);
delay(500);
digitalWrite(thisPin, LOW);
}
but the problem is the matlab has this format and you can not change the pins in loop see this
writeDigitalPin(arduino, 'D2', 1);
Here I can only change the pins manually but how I can make like above code in loop which the pin change every time ..
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!