greenhouse
jukebox_task.cpp
Go to the documentation of this file.
1 #include "jukebox_task.h"
2 #include "jukebox.h"
3 
4 InterruptIn button(D2);
5 
7  if (Jukebox::is_playing()) {
9  return;
10  }
11 
12  Jukebox::play();
13 }
14 
16  button.rise(_button_handler);
17 }
InterruptIn button(D2)
void _button_handler()
Definition: jukebox_task.cpp:6
bool is_playing()
Definition: jukebox.cpp:137
void stop()
Definition: jukebox.cpp:132
void play()
Definition: jukebox.cpp:97