mirror of
https://github.com/wled/WLED.git
synced 2025-07-12 21:36:32 +00:00
Minor fixes
- prevent setValuesFromMainSegment affecting segments - add ability to define default IR remote at compile time
This commit is contained in:
parent
e2db37d28a
commit
93bccb96b6
@ -6,8 +6,14 @@
|
|||||||
void setValuesFromMainSeg()
|
void setValuesFromMainSeg()
|
||||||
{
|
{
|
||||||
WS2812FX::Segment& seg = strip.getSegment(strip.getMainSegmentId());
|
WS2812FX::Segment& seg = strip.getSegment(strip.getMainSegmentId());
|
||||||
colorFromUint32(seg.colors[0]);
|
col[0] = R(seg.colors[0]);
|
||||||
colorFromUint32(seg.colors[1], true);
|
col[1] = G(seg.colors[0]);
|
||||||
|
col[2] = B(seg.colors[0]);
|
||||||
|
col[3] = W(seg.colors[0]);
|
||||||
|
colSec[0] = R(seg.colors[1]);
|
||||||
|
colSec[1] = G(seg.colors[1]);
|
||||||
|
colSec[2] = B(seg.colors[1]);
|
||||||
|
colSec[3] = W(seg.colors[1]);
|
||||||
effectCurrent = seg.mode;
|
effectCurrent = seg.mode;
|
||||||
effectSpeed = seg.speed;
|
effectSpeed = seg.speed;
|
||||||
effectIntensity = seg.intensity;
|
effectIntensity = seg.intensity;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2202061
|
#define VERSION 2202091
|
||||||
|
|
||||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
@ -308,7 +308,11 @@ WLED_GLOBAL bool nodeListEnabled _INIT(true);
|
|||||||
WLED_GLOBAL bool nodeBroadcastEnabled _INIT(true);
|
WLED_GLOBAL bool nodeBroadcastEnabled _INIT(true);
|
||||||
|
|
||||||
WLED_GLOBAL byte buttonType[WLED_MAX_BUTTONS] _INIT({BTN_TYPE_PUSH});
|
WLED_GLOBAL byte buttonType[WLED_MAX_BUTTONS] _INIT({BTN_TYPE_PUSH});
|
||||||
WLED_GLOBAL byte irEnabled _INIT(0); // Infrared receiver
|
#if defined(IRTYPE) && defined(IRPIN)
|
||||||
|
WLED_GLOBAL byte irEnabled _INIT(IRTYPE); // Infrared receiver
|
||||||
|
#else
|
||||||
|
WLED_GLOBAL byte irEnabled _INIT(0); // Infrared receiver disabled
|
||||||
|
#endif
|
||||||
WLED_GLOBAL bool irApplyToAllSelected _INIT(true); //apply IR to all selected segments
|
WLED_GLOBAL bool irApplyToAllSelected _INIT(true); //apply IR to all selected segments
|
||||||
|
|
||||||
WLED_GLOBAL uint16_t udpPort _INIT(21324); // WLED notifier default port
|
WLED_GLOBAL uint16_t udpPort _INIT(21324); // WLED notifier default port
|
||||||
|
Loading…
x
Reference in New Issue
Block a user