webbecol000
Published © GPL3+

Cat Blinker

A blinking red light.

BeginnerShowcase (no instructions)758
Cat Blinker

Things used in this project

Story

Read more

Schematics

diagram

Code

Cat Blinker

JavaScript
This is a blinking red light. Your cat may or may not be attracted to it. All you need is a power source and after you plug it in it will work.
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(300);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(300);                       // wait for a second
}

Credits

webbecol000
0 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.