0% found this document useful (0 votes)
2 views1 page

Simultaneous Injection Program Code

This document contains a program for simultaneous injection using an Arduino. It sets up four output pins and continuously turns them on for 5 seconds and off for 2 seconds in a loop. The program is designed to control LEDs or similar devices connected to the specified pins.

Uploaded by

pinponp120
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Simultaneous Injection Program Code

This document contains a program for simultaneous injection using an Arduino. It sets up four output pins and continuously turns them on for 5 seconds and off for 2 seconds in a loop. The program is designed to control LEDs or similar devices connected to the specified pins.

Uploaded by

pinponp120
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

// Programa para Inyección Simultanea 21/04/2025

const int iny1=0;


const int iny2=2;
const int iny3=4;
const int iny4=6;

void setup() {
pinMode(iny1, OUTPUT);
pinMode(iny2, OUTPUT);
pinMode(iny3, OUTPUT);
pinMode(iny4, OUTPUT);
}

// the loop function runs over and over again forever


void loop() {
digitalWrite(iny1, HIGH);
digitalWrite(iny2, HIGH);
digitalWrite(iny3, HIGH);
digitalWrite(iny4, HIGH); // turn the LED on (HIGH is the
voltaglevel)
delay(5000); // wait for a second

digitalWrite(iny1, LOW);
digitalWrite(iny2, LOW);
digitalWrite(iny3, LOW);
digitalWrite(iny4, LOW); // turn the LED off by making the
voltage LOW
delay(2000); // wait for a second
}

You might also like