My Project
Loading...
Searching...
No Matches
MCLedBase.h
Go to the documentation of this file.
1#pragma once
2
4{
5 public:
6 MCLedBase(int pwmChannel, int pin, bool inverted = false);
7
8 int GetPin();
9
10 void SetCurrentPwrPerc(int16_t pwrPerc);
11
12 private:
13 int _pwmChannel;
14 int _pin;
15 bool _inverted;
16
17 void init();
18 int16_t mapPwrPercToRaw(int pwrPerc);
19
20 // The following (derived) classes can access private members of MCLedBase.
21 friend class MCLed;
22 friend class MCStatusLed;
23};
Definition MCLedBase.h:4
void SetCurrentPwrPerc(int16_t pwrPerc)
Definition MCLedBase.cpp:23
int GetPin()
Definition MCLedBase.cpp:18
MCLedBase(int pwmChannel, int pin, bool inverted=false)
Definition MCLedBase.cpp:11
Definition MCLed.h:6
Definition MCStatusLed.h:6