mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 20:26:32 +00:00
prepare to allow h801 tx and rx pins to be gpio_user
This commit is contained in:
parent
56ce45b32d
commit
ababc351d7
@ -2362,7 +2362,7 @@ void GpioInit()
|
|||||||
if (mpin) pin[mpin] = i;
|
if (mpin) pin[mpin] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (2 == pin[GPIO_TXD]) Serial.set_tx(2);
|
if ((2 == pin[GPIO_TXD]) || (Settings.module == 20)) Serial.set_tx(2);
|
||||||
|
|
||||||
analogWriteRange(Settings.pwm_range); // Default is 1023 (Arduino.h)
|
analogWriteRange(Settings.pwm_range); // Default is 1023 (Arduino.h)
|
||||||
analogWriteFreq(Settings.pwm_frequency); // Default is 1000 (core_esp8266_wiring_pwm.c)
|
analogWriteFreq(Settings.pwm_frequency); // Default is 1000 (core_esp8266_wiring_pwm.c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user