Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
ParentMode.cpp
1 #include "ParentMode.h"
2 
4 {
5  pMode = NULL;
6 }
7 
9 {
10  if (pMode != NULL) {
11  pMode->stop();
12  }
13  pMode = newMode;
14  pMode->start();
15 }
16 
void switchMode(Mode *newMode)
Definition: ParentMode.cpp:8
Definition: Mode.h:39
ParentMode()
Constructor.
Definition: ParentMode.cpp:3
void stop()
Definition: Mode.h:72
void start()
Definition: Mode.h:68