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