Commit Graph

122 Commits

Author SHA1 Message Date
Theo Arends 0f805014e6 Support WT32-ETH01
- Support for fixed output Hi or Lo GPIO
- Support for ESP32 based Wireless-Tag WT32-ETH01 (#9496)
2020-10-23 15:18:58 +02:00
Paul C Diem caaf7ac39c Make button press rules override PWM Dimmer functions 2020-10-20 10:48:49 -05:00
Paul C Diem f075a89d6b Add PWM Dimmer multi-press and ledmask support 2020-10-19 20:12:41 -05:00
Theo Arends 7bc8956d86 Changed management of serial baudrate
Changed management of serial baudrate (#9554)
2020-10-16 15:18:16 +02:00
Theo Arends 490e7d838e Fix Template using ``#define USER_TEMPLATE``
Fix Template using ``#define USER_TEMPLATE`` (#9506)
2020-10-10 12:20:15 +02:00
Theo Arends 0c90f71e00 Fix ADC initalization sequence
Fix ADC initalization sequence (#9473)
2020-10-06 12:12:14 +02:00
Theo Arends 677bb85ecd Fix ledlink blink when no network connected
Fix ledlink blink when no network connected regression from 8.3.1.4 (#9292)
2020-10-04 17:08:11 +02:00
Theo Arends a9630b9d05 Change pulsetime to allow use for all relays
Change pulsetime to allow use for all relays with 8 interleaved so ``Pulsetime1`` is valid for Relay1, Relay9, Relay17 etc. (#9279)
2020-10-02 17:32:45 +02:00
Theo Arends c00d7035d9 Redesign GPIO to 16-bit 2020-09-29 18:10:21 +02:00
Theo Arends 805f93cfab Redesign GPIO to 16-bit 2020-09-29 14:08:48 +02:00
Theo Arends 46cbe13e9b Fix ESP32 compilation 2020-09-25 18:34:14 +02:00
Theo Arends 9cbd2d531d Initial GPIO redesign 2020-09-25 18:15:31 +02:00
Theo Arends ace6097052 Allow software SPI without hardware SPI 2020-08-23 15:34:19 +02:00
Theo Arends f268697e54 Add command ``Restart 2`` to halt system
Add command ``Restart 2`` to halt system. Needs hardware reset or power cycle to restart (#9046)
2020-08-10 16:19:44 +02:00
Paul C Diem c3112b20e0 Fix missed merge of device_group_count initialization. Rename remote_device_mode setting to multiple_device_groups. 2020-08-09 10:16:15 -05:00
Theo Arends b8973d64d0
Merge pull request #9023 from stefanbode/patch-16
Added exposure of MCP Out Pins as Relays
2020-08-03 18:23:51 +02:00
Theo Arends a3445e5b5f Add ESP32 ADC framework 2020-08-03 18:21:34 +02:00
stefanbode d16cdb108c
Added required hooks 2020-08-03 18:08:49 +02:00
Theo Arends 1d990ad091 Fix ESP32 PWM range 2020-08-03 11:52:25 +02:00
Theo Arends e1b825ed75 Fix ESP32 PWM resolution calculation 2020-08-02 12:40:15 +02:00
Theo Arends a84ebe552a Refactor rules processing 2020-07-20 17:24:51 +02:00
Theo Arends eeed6768d0 Third try to fix counter interrupt storm 2020-07-20 11:20:58 +02:00
Theo Arends 934ca43463 Remove Arduino ESP8266 Core support before 2.7.1
Remove Arduino ESP8266 Core support for versions before 2.7.1
2020-07-17 11:49:56 +02:00
Theo Arends 84ee6393a5 Add second rotary support
Add second rotary support default used for CW light control when first rotary is used for RGB light control (#8864)
2020-07-13 15:10:23 +02:00
Theo Arends b5f45aa295 Fix ESP32 SPI config 2020-06-20 17:58:21 +02:00
Norbert Richter 9b44a369d8
Fix some json unescapes 2020-06-19 12:33:31 +02:00
Theo Arends daef0a759d Stop blinks when no network configured 2020-06-15 22:40:15 +02:00
Theo Arends ef0b797686 Add basic support for ESP32 ethernet
Add basic support for ESP32 ethernet adding commands ``Wifi 0/1`` and ``Ethernet 0/1`` both default ON (#8503)
2020-06-15 18:27:04 +02:00
Paul C Diem 3d42fae8bd Fix SO88 incoming power state check 2020-05-29 18:55:33 -05:00
Staars 55e56fee43 Touch pin as button for ESP32 2020-05-27 15:59:32 +02:00
Paul C Diem bc6d7ceb87 Add support for SetOption88 to put each relay in a separate device groups 2020-05-26 22:07:25 -05:00
Theo Arends 32a39b828c
Merge pull request #8553 from phjr/fix-device-power-on-esp8266
fix default power state logic invoked even if already serviced by a d…
2020-05-26 18:31:32 +02:00
Peter Halicky f80d2ede3a fix default power state logic invoked even if already serviced by a driver 2020-05-26 18:20:46 +02:00
Theo Arends 66233b1749 Add support for full MAC address
Add support for unique MQTTClient (and inherited fallback topic) by full Mac address using ``mqttclient DVES_%12X`` (#8300)
2020-05-26 17:08:13 +02:00
Theo Arends bacb730b53 Fix escape of non-JSON received serial data
Fix escape of non-JSON received serial data (#8329)
2020-05-26 12:35:21 +02:00
Matthijs Abma 7210934774 Cleanup code and only allocate buffer when needed 2020-05-24 17:47:57 +02:00
Matthijs Abma a4ce4830e8 Encode content when not raw or json 2020-05-24 17:47:57 +02:00
Matthijs Abma 7f18e1e8e3 Split logic for adding char to buffer and sending
the buffer, to make sure the char doesn't get
lost when the buffer is full
2020-05-23 17:44:49 +02:00
Matthijs Abma 2626345662 Store if current byte is delimiter for later reuse 2020-05-23 17:44:49 +02:00
Theo Arends aafa0862ab Refactor LedPwm code 2020-05-23 13:09:16 +02:00
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 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 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 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 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 4aa1c18d82 Revert uart buffer size increase
Revert uart buffer size increase but visit uart buffer reads more often to solve possible uart buffer overrun caused by sleep
2020-05-11 16:45:22 +02:00
Theo Arends 125ee62ff3 Add Serial buffer overrun detection
Add Serial buffer overrun detection and fix serial corruption by increasing uart serial buffer to 520
2020-05-11 15:27:29 +02:00
Theo Arends 23a9948d29 Fix ESP32 compilation 2020-05-04 11:07:52 +02:00