projects
/
ardour.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
first compiling and theoretically correct version of Push2 canvas display.
[ardour.git]
/
libs
/
surfaces
/
push2
/
leds.cc
1
#include <algorithm>
2
3
#include "push2.h"
4
5
using namespace ArdourSurface;
6
using std::make_pair;
7
using std::max;
8
using std::min;
9
10
void
11
Push2::LED::set_color (uint8_t ci)
12
{
13
_color_index = max (uint8_t(0), min (uint8_t(127), ci));
14
}
15
16
void
17
Push2::LED::set_state (LED::State s)
18
{
19
_state = s;
20
}
21