My Project
Loading...
Searching...
No Matches
BLEHubChannel.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
6 A = 0,
7 B = 1,
8 C = 2,
9 D = 3,
10 OnboardLED = 99
11};
12
13// map channel numbers to to the blehub channels
14// String switch paridgam
15struct bleHubChannelMap : public std::map<std::string, BLEHubChannel> {
17 {
18 this->operator[]("A") = BLEHubChannel::A;
19 this->operator[]("a") = BLEHubChannel::A;
20 this->operator[]("B") = BLEHubChannel::B;
21 this->operator[]("b") = BLEHubChannel::B;
22 this->operator[]("C") = BLEHubChannel::C;
23 this->operator[]("c") = BLEHubChannel::C;
24 this->operator[]("D") = BLEHubChannel::D;
25 this->operator[]("d") = BLEHubChannel::D;
26 this->operator[]("1") = BLEHubChannel::A;
27 this->operator[]("2") = BLEHubChannel::B;
28 this->operator[]("3") = BLEHubChannel::C;
29 this->operator[]("4") = BLEHubChannel::D;
30 this->operator[]("LED") = BLEHubChannel::OnboardLED;
31 this->operator[]("Led") = BLEHubChannel::OnboardLED;
32 this->operator[]("led") = BLEHubChannel::OnboardLED;
33 };
35};
BLEHubChannel
Definition BLEHubChannel.h:5
@ B
Definition BLEHubChannel.h:7
@ A
Definition BLEHubChannel.h:6
@ C
Definition BLEHubChannel.h:8
@ D
Definition BLEHubChannel.h:9
@ OnboardLED
Definition BLEHubChannel.h:10
Definition BLEHubChannel.h:15
bleHubChannelMap()
Definition BLEHubChannel.h:16
~bleHubChannelMap()
Definition BLEHubChannel.h:34