summaryrefslogtreecommitdiff
path: root/12key-arduino/ModeMenu.h
blob: 7203b3036f5b0c8a8f7250586caf6b335a12fef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <Arduino.h>
#include "Mode.h"


class ModeMenu : public Mode {
	void reset() {}
	Mode * update(unsigned int keys) {
		if (keys & KEY_1) return Mode::modes[1];
		if (keys & KEY_2) return Mode::modes[2];
		if (keys & KEY_3) return Mode::modes[3];
		return NULL;
	}
};