I have downloaded the latest esp8266 toolchain via Boards manager in Arduino 1.6.5.While doing random testing,I came across an issue.I wrote a simple code to test the GPIO of ESP8266.This code was tested on both ESP-01 and ESP-07 module.
void setup() {
// put your setup code here, to run once:
pinMode(2,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(2,LOW);
delayMicroseconds(1);
digitalWrite(2,HIGH);
delayMicroseconds(1);
}
here,the frequency should be around 500KHz or if not,it should at least be a square wave with 50% duty cycle.The scope output has been attached.
It seems that the loop is taking ~7uS at he end of the loop.
am I doing something wrong here or is this a bug?
The attached output is from ESP-01 module.