(Tasmota) Notizblock

Aus TippvomTibb
Zur Navigation springen Zur Suche springen

Nachdem ich einen SONOFF DUAL R3 mit Tasmota geflasht hatte gingen auch schon die Probleme los. Irgendwie die gleich Sosze wie bei fhem. Insgesamt tolle Software, aber ....

Spezialwuensche enden recht schnell in Forenrecherchen und bleiben auch mal unbeantwortet.

Hier sammele ich unsortiert meine Fragen und ggf. Antworten.

Warum sind im WEBUI im Menue 'Template parameters' einige GPIOx in rot?

Hinweis: Beim ESP32 z.B. GPIO6-GPIO11 und GPIO16 und GPIO17. Loesung: In der tasmota_support/support.ino werden die Pins abhaengig von der Prozessorvariante als 'gefaehrlich zu aendern' eingestuft.

bool RedPin(uint32_t pin) // pin may be dangerous to change, display in RED in template console
{
#if defined(ESP32) && CONFIG_IDF_TARGET_ESP32C3
  return false;     // no red pin on ESP32C3
#elif defined(CONFIG_IDF_TARGET_ESP32S2)
  return false;     // no red pin on ESP32S3
#elif defined(CONFIG_IDF_TARGET_ESP32S3)
  return (33<=pin) && (37>=pin);  // ESP32S3: GPIOs 33..37 are usually used for PSRAM
#elif defined(CONFIG_IDF_TARGET_ESP32)  // red pins are 6-11 for original ESP32, other models like PICO are not impacted if flash pins are condfigured
  // PICO can also have 16/17/18/23 not available
  return ((6<=pin) && (11>=pin)) || (16==pin) || (17==pin);  // TODO adapt depending on the exact type of ESP32
#else // ESP8266
  return (9==pin)||(10==pin);
#endif
}


Request for Comments

Loading comments...