greenhouse
Functions
jukebox_task.cpp File Reference
#include "jukebox_task.h"
#include "jukebox.h"
Include dependency graph for jukebox_task.cpp:

Go to the source code of this file.

Functions

InterruptIn button (D2)
 
void _button_handler ()
 

Function Documentation

◆ _button_handler()

void _button_handler ( )

Definition at line 6 of file jukebox_task.cpp.

6  {
7  if (Jukebox::is_playing()) {
9  return;
10  }
11 
12  Jukebox::play();
13 }
bool is_playing()
Definition: jukebox.cpp:137
void stop()
Definition: jukebox.cpp:132
void play()
Definition: jukebox.cpp:97

References Jukebox::is_playing(), Jukebox::play(), and Jukebox::stop().

Referenced by Tasks::Jukebox::start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ button()

InterruptIn button ( D2  )

Referenced by Tasks::Jukebox::start().

Here is the caller graph for this function: