-->
Page 8 of 9

Re: I keep getting a compiling error on Arduino with ESP8266

PostPosted: Sat Jul 22, 2017 6:37 pm
by QuickFix
You probably first want to compile and upload a simple sketch, like blinking the blue LED on the ESP, before trying larger sketches. :idea:
Code: Select all#define led_pin BUILTIN_LED // pin 2 on most boards
#define led_interval 500

void setup() {
  Serial.begin(115200);         // Initialize serial for communication
  Serial.setDebugOutput(false); // Turn off WiFi debug messages for now
 
  Serial.print("Setting pin mode of pin ");
  Serial.print(led_pin);
  Serial.println(" to OUTPUT");
  pinMode(led_pin, OUTPUT);
}

void loop() {
  Serial.print("Setting pin ");
  Serial.print(led_pin);
  Serial.println(" to HIGH");
  digitalWrite(led_pin, HIGH);
  delay(led_interval);

  Serial.print("Setting pin ");
  Serial.print(led_pin);
  Serial.println(" to LOW"); 
  digitalWrite(led_pin, LOW);
  delay(led_interval);
}

Re: I keep getting a compiling error on Arduino with ESP8266

PostPosted: Sun Jul 23, 2017 8:21 am
by OG Style
I uploaded that and the blue led on the board blinks one time about every 7 seconds. Every time the led blinks the serial monitor prints.

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld

Re: I keep getting a compiling error on Arduino with ESP8266

PostPosted: Sun Jul 23, 2017 10:49 am
by OG Style
I put this script on it and it works correctly.

https://iot-playground.com/blog/2-uncat ... nk-example

Re: I keep getting a compiling error on Arduino with ESP8266

PostPosted: Mon Jul 24, 2017 11:47 am
by OG Style
I just got my 2nd esp-01 in the mail today and the script is working except it is says the humidity is "Humidity: 2147483647%" . The new esp only has 1 led, my old one has 2 leds. The old one has a power led and a wifi led.