Re: Issues with onboard blue led on esp8266-01
Posted: Mon Jul 02, 2018 1:21 am
Well if you are using ESP-01 the LED is connected to TXD so it's obvious, that you can not control it after Serial.begin()
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
#include <Arduino.h>
const short int _led = 1; //GPIO1
const short int _led2 = 16;
void setup() {
// put your setup code here, to run once:
pinMode(_led,OUTPUT);
pinMode(_led2,OUTPUT);
// Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
while(true)
{
digitalWrite(_led,LOW);
delay(1000);
digitalWrite(_led,HIGH);
delay(1000);
}
}
Pablo2048 wrote:Yes, it's as I said - GPIO1 is TXD and BOTH LED GPIO on ESP-01 - see http://blog.circuits4you.com/2016/03/un ... -pins.html ...