Commit 4e74bcb 1 parent 61c2912 commit 4e74bcb Copy full SHA for 4e74bcb
File tree 3 files changed +11
-10
lines changed
3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
+---------------------------------------------------------------------------+
2
2
| LightDimmer changelog |
3
3
+---------------------------------------------------------------------------+
4
+ 1.3.1 Fix a nasty warning in LightDimmer constructor
4
5
1.3 Added a maximum value to be able to set the brightness of each LED.
5
6
1.2.3 Fix forgotten implementation of setOnTime and setPeriod. Moved short
6
7
implementation to the header.
Original file line number Diff line number Diff line change 1
1
name =LightDimmer
2
- version =1.3
2
+ version =1.3.1
3
3
author =Jean-Luc - Locoduino
4
4
maintainer =Jean-Luc - Locoduino
5
5
sentence =This library allows to drive LEDs to simulate railroad signals.
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ LightDimmer *LightDimmer::sLightList = NULL;
22
22
23
23
LightDimmer::LightDimmer ()
24
24
: mState(LD_OFF),
25
- mMax(255 ),
26
- mRiseTime(250 ),
27
- mFallTime(250 ),
28
- mOnTime(200 ),
29
- mPeriod(900 ),
30
- mNextEventDate(( uint32_t ) 0u),
31
- mValue(( uint8_t ) 0u),
32
- mPin(255 ),
25
+ mMax(255u ),
26
+ mRiseTime(250u ),
27
+ mFallTime(250u ),
28
+ mOnTime(200u ),
29
+ mPeriod(900u ),
30
+ mNextEventDate(0u ),
31
+ mValue(0u ),
32
+ mPin(63 ),
33
33
mBlink(false ),
34
- mOff(( uint8_t )0u )
34
+ mOff(LOW )
35
35
{
36
36
mNext = sLightList ;
37
37
sLightList = this ;
You can’t perform that action at this time.
0 commit comments