Commit Graph

110 Commits

Author SHA1 Message Date
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
Theo Arends d410420110 Tasmotify ESP32 webcam 2020-05-03 18:37:12 +02:00
Theo Arends 99178c2f5d
Merge pull request #8315 from gemu2015/esp32-pwm
esp32 initial pwm support
2020-05-01 18:04:43 +02:00
gemu2015 bf29904b7a esp32 initial pwm support 2020-05-01 17:38:40 +02:00
Theo Arends 892be892fa Remove gpio to pin support 2020-05-01 17:37:56 +02:00
Theo Arends 7177c7d8e0 Change ESP32 pin allocation part 4 2020-05-01 16:47:41 +02:00
Theo Arends ef61668037 Change ESP32 pin allocation part 2 2020-04-29 17:44:03 +02:00
Theo Arends d805803daa Change pin array names
Change pin array names to block unwanted use of direct access
2020-04-29 14:01:02 +02:00
Theo Arends 60e7a73b60 Switch from GPIO array to Pin array 2020-04-28 14:42:47 +02:00
Theo Arends 3fef91d6ca Change pin handling part 6 2020-04-27 17:28:05 +02:00
Theo Arends ae4ec4325d Change pin handling part 5 2020-04-27 17:16:52 +02:00
Theo Arends c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends 5d9be9a4d0 Fix pin handling part 1 2020-04-27 10:35:38 +02:00