Theo Arends
f7c30250c1
Change some more defines to const
...
Change some more defines to const
2019-03-31 11:59:04 +02:00
Theo Arends
e1c92b701b
Change NULL to nullptr
...
Change NULL to nullptr
2019-03-26 18:26:50 +01:00
Theo Arends
a7a07c5b96
Fix JSON message error ( #5521 )
...
Fix JSON message error regression (#5521 )
2019-03-25 10:02:12 +01:00
Theo Arends
6922e657d9
Shrink code/flash space
...
Shrink code/flash space
2019-03-23 17:00:59 +01:00
Theo Arends
878205335f
Consolidate MqttPublishTeleState
...
Consolidate MqttPublishTeleState
2019-03-20 14:05:43 +01:00
Theo Arends
06a9fbd792
Changed logging message handling
...
Changed logging message handling
2019-03-08 15:15:42 +01:00
Theo Arends
4b69a7d115
Update xdrv_04_light.ino
...
Fix core 2.3.0 compile error
2019-02-26 10:54:27 +01:00
netpok
61099c4ead
Fix indentation
2019-02-25 22:36:18 +01:00
netpok
01ce2a31d3
Implement RGB CT linking
2019-02-25 22:29:39 +01:00
netpok
38433e56f7
Replace compare cycle with memcmp
2019-02-25 22:24:53 +01:00
netpok
6d1cfe5a07
Force light update on color mapping change
2019-02-25 22:24:06 +01:00
netpok
d8eac1d8fc
Replace if with min
...
saves ~30 bytes
2019-02-25 21:37:27 +01:00
Theo Arends
9a670be95b
Fix buffer overflow
...
Fix buffer overflow (#5310 )
2019-02-25 21:23:18 +01:00
Theo Arends
9f00978a79
Fix Domoticz Color regression
...
Fix Domoticz Color regression (#5310 )
2019-02-25 19:47:45 +01:00
Gabor Simon
48f6b09987
Initialisation and updating of color mapping added
2019-02-24 23:48:03 +00:00
netpok
430334e604
Replace vector with array
...
it saves 24 bytes of code
2019-02-24 21:56:44 +01:00
netpok
945e7000dd
Implement full color remapper
2019-02-24 21:03:33 +01:00
Gabor Simon
4492a14574
Added SetOption37 for RGB remapping
2019-02-24 12:07:15 +00:00
Gabor Simon
38b81302e3
sm16716: added config option for custom rgb order
2019-02-24 09:26:10 +04:00
Andre Thomas
5b71095e02
Make sleep for light scheme0 optional
...
Make sleep for light scheme0 optional with compile directive (enabled by default)
2019-02-18 08:21:57 +02:00
Theo Arends
98ae3eaf54
6.4.1.16 Online template change
...
6.4.1.16 20190211
* Initial support for online template change using command Template (#5177 )
2019-02-11 19:21:49 +01:00
Gabor Simon
2d892f64cd
Init delay of SM16716 increased to 1 ms
...
As per measurements by @damondins:
https://github.com/gsimon75/Sonoff-Tasmota/pull/3#issuecomment-462059310
2019-02-10 08:33:05 +00:00
Colin Kuebler
d7b8a6453d
Added preprocessor constant for LT_SM16716 for improved code readability
...
Note that this differs from other LT_* in that it's not an enum
Ensure the SM16716 codepath is only taken when the top half of light_type is LT_SM16716
2019-02-01 19:41:12 -05:00
Colin Kuebler
817d0af598
No need (and pointless) to call SM16716_Init until color updates, iff using sel pin
2019-02-01 17:37:37 -05:00
Colin Kuebler
99b027852b
Fixed first color command failing; need to wait for chip to power up
2019-02-01 17:33:21 -05:00
Colin Kuebler
25856c323a
Track sm16716 select pin state so we don't waste cycles continuously enabling/disabling color
...
Added some comments; disabled sm16716 debug messages by default
Removed delay after setting select pin; didn't seem to help anyway
2019-02-01 00:59:53 -05:00
Colin Kuebler
04f1ed1659
Implemented sm16716 select
...
If SM16716_SEL is specified, it will toggle it on/off depending on whether or not there is color data
2019-01-31 17:17:01 -05:00
Colin Kuebler
f60dd3c06a
Moved pin mode selection for sm16716 out of init function
...
Made void
Call SM16716_Init before setting the color
2019-01-30 18:32:37 -05:00
Colin Kuebler
4b6ddfb76f
Moved PWM control to its own block while using SM16716 to skip RGB values
2019-01-30 18:15:25 -05:00
Colin Kuebler
ec984ab841
Fixed compiler errors
...
Missing #endif oops
Vestigial function call
2019-01-30 17:32:17 -05:00
Colin Kuebler
fa7440fb9a
Allow PWM while SM16716 is enabled, for mixed control devices
2019-01-30 17:28:25 -05:00
Colin Kuebler
3a43050d93
Integrated Gabor's SM16716 code into the light driver code
...
Removed redundant processing and variables
Added new light type to distinguish SM16716 devices
2019-01-30 17:19:40 -05:00
Theo Arends
304ac6fe44
6.4.1.12 code changes (byte/boolean)
...
6.4.1.12 20190128
* Change code use of boolean to bool and byte to uint8_t
* Change code uint8_t flags to bool flags
2019-01-28 14:08:33 +01:00
Theo Arends
269258bde5
Update xdrv_04_light.ino
2019-01-27 11:25:28 +01:00
Andre Thomas
f23d18723e
Disable sleep 0 for scheme 0
...
Disable sleep 0 for scheme 0 as there is no animation required
2019-01-26 16:43:36 +02:00
Theo Arends
eab6be8bcb
Fix WS2812 led command
...
Fix WS2812 led command to address last pixel (#5015 )
2019-01-24 11:55:31 +01:00
Joel Stein
bab1e4e6ac
light: improve handling of dimmer_plugin (fix rules)
2019-01-13 14:52:33 +01:00
Theo Arends
0195cabbd6
Add relay status functionality to LED2
...
Add relay status functionality to LED2 when configured leaving LED1 for (wifi/mqtt) status indication
2019-01-06 18:02:21 +01:00
Theo Arends
447ec6256e
6.4.1.4 Update Copyright (C) 2019
...
6.4.1.4 20190101
* Update Copyright (C) 2019
2019-01-01 13:55:01 +01:00
Theo Arends
afe83a3460
Prep for template tuning
2018-12-29 17:19:13 +01:00
Theo Arends
0b10f48e41
6.4.1.1 Fix most compiler warnings
...
6.4.1.1 20181224
* Fix most compiler warnings
2018-12-24 18:14:25 +01:00
Joel Stein
b2005fba40
introduce new api-call for dimmer-devices
2018-12-17 18:29:42 +01:00
Erik
d3ccd668b0
Publish state message when changing effect
2018-12-12 20:32:10 +01:00
Theo Arends
a516b25c1b
Clean and shrink lights
...
Clean and shrink lights
2018-12-09 16:45:26 +01:00
Erik
d8cf001304
Announce RGBW light, add 'White' command
2018-12-07 21:32:01 +01:00
Erik
74172f14d3
Further improve Hass auto discovery
2018-12-02 16:39:59 +01:00
Joel Stein
b7a18f7bcc
PS_16_DZ: tryfix dimming
2018-11-26 00:31:45 +01:00
Joel Stein
34da2859ba
PS_16_DZ: fixes
2018-11-24 05:08:14 +01:00
Joel Stein
55b287d6da
PS_16_DZ: fix define in xdrv04
2018-11-24 04:09:57 +01:00
Joel Stein
64d6ef86ce
PS_16_DZ: initial support
2018-11-24 03:29:32 +01:00