Hello Friends! Welcome Back to "INNOVATIVE SCIENTIFIC INVENTIONS". Today I will show you. How to Blink LED with Arduino Mega.
Circuit Diagram:
Code:
//CODE
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forevervoid loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
What do need to need to Create this Project:
How to Upload Code in Arduino:
How to Select Port:
- Arduino Mega
- LED
- Open Arduino IDE.
- Paste the code in Arduino IDE.
- Compile the Code.
- Upload the Code in Board.
How to Select Board:
- Open Arduino IDE
- Click on 'Tools' Option
- Click on 'Board'
- Select your Board
How to Select Port:
- Open Arduino IDE
- Click on 'Tools' Option
- Click on 'Port'
- Select your Port
How to Save Sketch in Computer:
- Open Arduino IDE
- Click on 'File' Option
- Click on 'Save' Option
- Select your Folder
How to 'Save as' Sketch:
- Open Arduino IDE
- Click on 'File' Option
- Click on 'Save as' Option
- Select your Folder
IF YOU WANT TO DONATE FOR "INNOVATIVE SCIENTIFIC INVENTIONS" SO PLEASE CONTACT ME.
0 Comments