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

Arduino Code Example for Output Control

The document contains a code snippet for an Arduino program that sets up and controls four output pins. It initializes the pins RMF, RMB, LMF, and LMB, and alternates their states between HIGH and LOW with a one-second delay. There is a duplicate variable declaration for RMB which may cause an error.

Uploaded by

ssulemanakbar12
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)
7 views1 page

Arduino Code Example for Output Control

The document contains a code snippet for an Arduino program that sets up and controls four output pins. It initializes the pins RMF, RMB, LMF, and LMB, and alternates their states between HIGH and LOW with a one-second delay. There is a duplicate variable declaration for RMB which may cause an error.

Uploaded by

ssulemanakbar12
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

int RMF = 7;

int RMB = 6;

int LMF = 8;

int RMB = 9;

void setup() {

pinMode(RMF, OUTPUT);

pinMode(RMB, OUTPUT);

pinMode(LMF, OUTPUT);

pinMode(LMB, OUTPUT);

void loop() {

digitalWrite(RMF,HIGH);

digitalWrite(RMB,LOW);

digitalWrite(LMF,HIGH);

digitalWrite(LMB,LOW);

delay (1000);

digitalWrite(RMF,LOW);

digitalWrite(RMB,LOW);

digitalWrite(LMF,LOW);

digitalWrite(LMB,LOW);

delay (1000);

You might also like