Serial.swap may work now, unknown. But theblue LED is a status LED and is there only to show serial activity.
Ray
Explore... Chat... Share...
Moderator: igrr
#define FUNC_U0CTS 4
#define FUNC_U0RTS 4
//////////////////////////////////////////////////////////////////////////////
//
//
// SETUP
//
/////////////////////////////////////////////////////////////////////////////
void setup() {
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_U0CTS);//CONFIG MTCK PIN FUNC TO U0CTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, FUNC_U0RTS);//CONFIG MTDO PIN FUNC TO U0RTS
SET_PERI_REG_MASK(0x3ff00028 , BIT2);//SWAP PIN : U0TXD<==>U0RTS(MTDO) , U0RXD<==>U0CTS(MTCK)
/* Initializations */
const int _WiFiLed1 = 2;
// AJOUTER CETTE LIGNE APRES DANS LE SETUP
// pinMode( _WiFiLed, OUTPUT);
// Sert à controller la led WiFi
// Attention INCOMPATIBLE avec les transmission Tx/Rx
// Trois mode
// 0 - Eteindre
// 1 - Allumer
// 2 - Inverser
void WiFiLed(int m){
//Serial.print("*** OnBoard Led > ");
pinMode(_WiFiLed1, OUTPUT);
if (m == 0) {
digitalWrite(_WiFiLed1, HIGH);
//Serial.println("0");
return;
}
if (m == 1){
digitalWrite(_WiFiLed1, LOW);
//Serial.println("1");
return;
}
if (m == 2){
if (digitalRead(_WiFiLed1) == HIGH){
digitalWrite(_WiFiLed1, LOW);
//Serial.println("1");
return;
}
if (digitalRead(_WiFiLed1) == LOW){
digitalWrite(_WiFiLed1, HIGH);
//Serial.println("0");
return;
}
}
}
Serial.begin(115200)
Serial.set_tx(2);
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]