I made a heartbeat program!


#1

I made a heartbeat sequence based on a program by @Cloudjumper

The Winner of Week One Music!

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}
Timer timer;
LED led;
Animation animate;
Buzzer buzz;
void button_press(void) {
timer.pause(1000);
animate.breathe_single_color(RED);
timer.pause(800);
animate.breathe_single_color(RED);
timer.pause(800);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.long_buzz();
animate.breathe_single_color(RED);
timer.pause(1000);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.short_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
buzz.extra_long_buzz();
animate.breathe_single_color(RED);
timer.pause(500);
led.flash_all(RED, 500);
timer.pause(1000);
}


#2

WHOOOAAAA, this is SO COOL.

I will test this tomorrow.


#3

Cool!!! :smile:


#4

Wow!!! So cool!!! :heart: :heart_decoration: