summaryrefslogtreecommitdiff
path: root/libs/surfaces/push2/leds.cc
blob: 75921f1b49e500520c8322f52d653e7a46f72bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <algorithm>

#include "push2.h"

using namespace ArdourSurface;
using std::make_pair;
using std::max;
using std::min;

void
Push2::LED::set_color (uint8_t ci)
{
	_color_index = max (uint8_t(0), min (uint8_t(127), ci));
}

void
Push2::LED::set_state (LED::State s)
{
	_state = s;
}