Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
LayoutMapCallback.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2 LayoutMapCallback
3 
4 Written by Michael C. Miller.
5 
6 I invest time and resources providing this open source code,
7 please support me by dontating (see https://github.com/Makuna)
8 
9 -------------------------------------------------------------------------
10 This file is part of the LUMITRONIX_iFlex_Workshop library.
11 
12 LumitronixIFlexBus is free software: you can redistribute it and/or modify
13 it under the terms of the GNU Lesser General Public License as
14 published by the Free Software Foundation, either version 3 of
15 the License, or (at your option) any later version.
16 
17 LumitronixIFlexBus is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU Lesser General Public License for more details.
21 
22 You should have received a copy of the GNU Lesser General Public
23 License along with LumitronixIFlex. If not, see
24 <http://www.gnu.org/licenses/>.
25 -------------------------------------------------------------------------*/
26 
27 #pragma once
28 
29 
30 #if defined(NEOPIXEBUS_NO_STL)
31 
32 typedef uint16_t(*LayoutMapCallback)(int16_t x, int16_t y);
33 
34 #else
35 
36 #undef max
37 #undef min
38 #include <functional>
39 typedef std::function<uint16_t(int16_t x, int16_t y)> LayoutMapCallback;
40 
41 #endif
std::function< uint16_t(int16_t x, int16_t y)> LayoutMapCallback
Definition: LayoutMapCallback.h:39