vTomb Logo

Fade 3 LEDs arduino Video

Home
//source code. enjoy!
//better code in the comments (this description does not allow brackets, so i can't put it here)


int red = 5; //the first three lines are location of leds
int green = 6;
int blue = 3;

int turn = 0; //turn is whose turn is it to turn on, 0 is red, 1 is blue and 2 is green; this is just to make switching easier
int fade = 5; // amount of fade
int startblue = 0; //this is the birghness of the leds i should have named it brightblue, brightgreen etc.
int startgreen = 0;
int startred = 0;

void setup(){
pinMode(red,OUTPUT); //sets led outputs
pinMode(green,OUTPUT);
pinMode(blue,OUTPUT);


}

void loop(){


startred = startred + fade; //these three lines is the fading, it does not show up until its turn is up.
startblue = startblue + fade;
startgreen = startgreen +fade;

//first is the red leds turn which turn starts w/ 0 it faded up then down

if (turn == 0 ){

analogWrite(red,startred);

if (startred == 255){
fade = -fade; //negate the fade to go down

}
}

//once it reaches all the way done it negates the fade again to prepare the blue to fade and it switches the turn to 1 so blue can start
if (fade == -5 && startred == 0 && turn == 0){
turn = 1;
fade = -fade;

}

//blue's turn, same thing as red, fades up, then down
if (turn== 1){
analogWrite(blue,startblue);

if (startblue ==255){
fade = -fade;
}
}
//switches to green and negatives fade to prepare for green
if (turn == 1 && fade ==-5 && startblue == 0){
turn = 2;
fade =-fade;
}

if (turn == 2){
analogWrite(green,startgreen);
if (startgreen == 255){
fade = -fade;
}
}

// finally it resets to 0 to start w. red again
if (turn == 2 && fade ==-5 && startgreen == 0){
turn = 0;
fade = -fade;
}

delay (50); //delay to make it smooth
}
150 chances to become an millionaire

150 chances to become an millionaire

wildsbet.com

#big wins#winners#games#casinos

About the Site 🌐

This site provides links to random videos hosted at YouTube, with the emphasis on random. πŸŽ₯

Origins of the Idea 🌱

The original idea for this site stemmed from the need to benchmark the popularity of a video against the general population of YouTube videos. 🧠

Challenges Faced πŸ€”

Obtaining a large sample of videos was crucial for accurate ranking, but YouTube lacks a direct method to gather random video IDs.

Even searching for random strings on YouTube doesn't yield truly random results, complicating the process further. πŸ”

Creating Truly Random Links πŸ› οΈ

The YouTube API offers additional functions enabling the discovery of more random videos. Through inventive techniques and a touch of space-time manipulation, we've achieved a process yielding nearly 100% random links to YouTube videos.

About YouTube πŸ“Ί

YouTube, an American video-sharing website based in San Bruno, California, offers a diverse range of user-generated and corporate media content. 🌟

Content and Users 🎡

Users can upload, view, rate, share, and comment on videos, with content spanning video clips, music videos, live streams, and more.

While most content is uploaded by individuals, media corporations like CBS and the BBC also contribute. Unregistered users can watch videos, while registered users enjoy additional privileges such as uploading unlimited videos and adding comments.

Monetization and Impact πŸ€‘

YouTube and creators earn revenue through Google AdSense, with most videos free to view. Premium channels and subscription services like YouTube Music and YouTube Premium offer ad-free streaming.

As of February 2017, over 400 hours of content were uploaded to YouTube every minute, with the site ranking as the second-most popular globally. By May 2019, this figure exceeded 500 hours per minute. πŸ“ˆ

List of ours generators⚑

Random YouTube Videos Generator

Random Film and Animation Video Generator

Random Autos and Vehicles Video Generator

Random Music Video Generator

Random Pets and Animals Video Generator

Random Sports Video Generator

Random Travel and Events Video Generator

Random Gaming Video Generator

Random People and Blogs Video Generator

Random Comedy Video Generator

Random Entertainment Video Generator

Random News and Politics Video Generator

Random Howto and Style Video Generator

Random Education Video Generator

Random Science and Technology Video Generator

Random Nonprofits and Activism Video Generator

By using our services, you agree to our Privacy Policy.
Alternative random YouTube videos generator: YouTuBeRandom
vTomb Β© 2024
By using our services, you agree to our Privacy Policy.
OK