Commit Graph

6916 Commits

Author SHA1 Message Date
George
e780f25283 Gamma correction
Implement changes proposed by @s-hadinger review.
* Use 0-255 range in settings
* Apply gamma correction from xdrv_light & use changuintscale helper fn (as per pwm light routine)
2020-05-23 17:13:04 +10:00
George
833d89203f Fix settings delta fail
bugfix - settings always default on boot
*Moved block to right scope
*Got version number right duh
2020-05-20 13:25:11 +10:00
George
603b628f97 Add pwm mode masking
* Extra setting & command to set - allows masking of pwm mode. Use case is for leds attached to buttons for seeing at night; this way user can combine both pwm and digital leds (i.e. pwm for the button leds but non-button status leds can stay on/off).
2020-05-20 13:23:54 +10:00
George
e21cbfdc5d More sensible behaviour
* When setting PWM values, updates all the LEDs (instant response). Uses led_power values.
* If LEDLINK not set, but LED1 is, LED1 is the status led. When turning on/off, setledlink uses digitalwrite (which does not respect the new pwm operation). In this case only, we will use the setledpoweridx instead of digitalwrite - costly (every 250ms this runs), but edge case / legacy. Allows more intuitive operation - if we blink an LED with the max and min PWM limits, we'd expect it to respect these. In this case, blink will also now update the led_power status, which keeps this accurate e.g. if ledpower 1 cmnd was sent, then blink occurred, led_state would read a 1 for that bit but the led would be off (but nothing was reading it for status so it didn't cause any trouble). Leaving digitalwrite when LEDLINK is defined as this is more efficient and the use case for pwm leds is to find buttons - link indicator would become more ambiguous for no benefit.
2020-05-20 13:23:53 +10:00
George
bea58f223f Oops
Compile error. Forgot bracket.
2020-05-20 13:23:53 +10:00
George
fb179c27af Fixes
* Setting commands don't update if no data is sent
* Didn't understand how pin mapping worked duh. Fixed.
2020-05-20 13:23:53 +10:00
George
bd33574ee7 Align new settings to 2B boundaries
Attempting to fix settings not working correctly (might have mucked up the boundaries and compiler put a padding byte in).
2020-05-20 13:23:53 +10:00
George
ce2696fef0 Fix compile errors
Missing brackets and semicolons of course. Blame python.
2020-05-20 13:23:53 +10:00
George
a305f435e8 First pass at led pwm settings
* Added settings for ledpwm_on and ledpwm_off with defaults that mimic current digitalwrite function
* Changed ledpoweridx from digitalwrite to analogwrite
* Add commands to change new settings
2020-05-20 13:23:52 +10:00
Theo Arends
d3f1677c08
Merge pull request #8487 from s-hadinger/unishox_py_fix
Fix unishox python
2020-05-19 21:59:14 +02:00
Stephan Hadinger
6da3d95965 Fix unishox python 2020-05-19 20:23:01 +02:00
Theo Arends
45b780701a
Merge pull request #8486 from gemu2015/scripter-update
scripter update
2020-05-19 17:05:59 +02:00
gemu2015
5921055e2f scripter update
script compression option
more google charts (histogram, tables, gauges)
smal bug fixes
2020-05-19 16:44:01 +02:00
Theo Arends
cd7f719563 Add more functionality to `Switchmode` 11 and 12 (#8450)
Add more functionality to ``Switchmode`` 11 and 12 (#8450)
2020-05-19 15:52:10 +02:00
Theo Arends
d61345e79f Add TEMPLATES.md generation tool 2020-05-19 11:31:24 +02:00
Theo Arends
e1fbf64037 Add command `Rule0`
Add command ``Rule0`` to change global rule parameters
2020-05-19 11:15:31 +02:00
Adrian Scillato
70f51b78fe
Merge pull request #8459 from morgenroth/fix-empty-knx-packets-bug
Fix: KNX empty UDP packets sent to the network
2020-05-18 18:45:24 -03:00
Theo Arends
d390899733
Merge pull request #8479 from s-hadinger/prepare_arduino
Prepare compile flags for Arduino patches in flight
2020-05-18 21:10:19 +02:00
Stephan Hadinger
016258e363 Prepare compile flags for Arduino patches in flight 2020-05-18 20:06:47 +02:00
Theo Arends
ebbdb28e48 Bump version to 8.3.1.1 2020-05-18 17:06:11 +02:00
Theo Arends
d8d9e334f6 Add ValidTemplate function 2020-05-18 17:02:24 +02:00
Theo Arends
49d3b7dd98
Merge pull request #8477 from bovirus/development
Italian language update
2020-05-18 16:19:20 +02:00
bovirus
6c99b89788
Italian language update 2020-05-18 16:17:22 +02:00
Theo Arends
d61c1b001d
Merge pull request #8473 from gemu2015/ra8876_esp32
ra8876 esp32
2020-05-18 15:29:52 +02:00
gemu2015
769f69d049 remove debug print 2020-05-18 15:02:27 +02:00
Theo Arends
90168bc6f5
Merge pull request #8476 from ascillato/patch-1
Update Spanish Translation
2020-05-18 14:54:52 +02:00
Adrian Scillato
6ab98e5e16
Update Spanish Translation 2020-05-18 09:45:17 -03:00
Theo Arends
9d15381f11 Merge branch 'development' of https://github.com/arendst/Tasmota into development 2020-05-18 14:12:58 +02:00
Theo Arends
7241b9d37c Prep release 8.3.1 2020-05-18 14:12:44 +02:00
Theo Arends
911c2f6419
Merge pull request #8474 from gemu2015/scripter-update
scripter support for google charts in WEBUI
2020-05-18 14:10:32 +02:00
gemu2015
e043788de8 scripter support for google charts in WEBUI 2020-05-18 10:29:32 +02:00
gemu2015
88627a5a41 support for jpeg pictures on color lcds 2020-05-18 10:25:18 +02:00
gemu2015
21656fdd81 ra8876 esp32 2020-05-18 10:19:13 +02:00
Theo Arends
dcde10eac4
Merge pull request #8470 from effelle/development
HA Discovery: Oops! New DeviceName
2020-05-17 19:23:02 +02:00
Theo Arends
b797a2ce1f
Merge pull request #8469 from s-hadinger/zigbee_non_zero_addr2
Zigbee allow zero shortaddr
2020-05-17 19:22:44 +02:00
Federico Leoni
950a4dc998 HA Discovery: Oops! New DeviceName 2020-05-17 13:42:14 -03:00
Stephan Hadinger
1460f81490 Zigbee allow zero shortaddr 2020-05-17 18:33:42 +02:00
Theo Arends
80ad999a38
Merge pull request #8468 from s-hadinger/unishox_class
Unishox code optimized
2020-05-17 18:24:00 +02:00
Stephan Hadinger
20b2257c8c Unishox code optimized 2020-05-17 18:05:17 +02:00
Theo Arends
4e38cb7ba9 Allow empty DeviceName 2020-05-17 17:55:36 +02:00
Theo Arends
90e833238f Allow no DeviceName 2020-05-17 17:38:28 +02:00
Theo Arends
d7f6c78ed9 Add command `DeviceName`
Add command ``DeviceName`` defaults to FriendlyName1 and replaces FriendlyName1 in GUI
2020-05-17 17:10:17 +02:00
Theo Arends
744927c0a4
Merge pull request #8466 from curzon01/development
Refactor unishox Python
2020-05-17 16:38:20 +02:00
Norbert Richter
0cfea4add6
Refactor unishox Python 2020-05-17 16:28:09 +02:00
Theo Arends
01ae037253
Merge pull request #8465 from Jason2866/patch-1
Enable user_config_override.h for ESP32 by default
2020-05-17 15:10:59 +02:00
Jason2866
5f7635e68b
Enable user_config_override.h for ESP32 by default
since we have always a user_config_override.h generated with override_copy.py if there is none.
2020-05-17 14:55:00 +02:00
Theo Arends
1c441f9059 Free unused buffer 2020-05-17 12:04:55 +02:00
Theo Arends
6ef6a73cb9
Merge pull request #8463 from s-hadinger/unishox_python
Add unishox Python
2020-05-17 10:46:09 +02:00
Stephan Hadinger
949248fa17 Add unishox Python 2020-05-17 10:37:42 +02:00
Johannes Morgenroth
05c45f7ad7 Remove flush() call after read of KNX packets
The flush() call after read() causes empty packets being sent as response
for all UDP packets received on that port.
2020-05-16 18:05:23 +02:00