Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Angelo Santagata
#20793 It is a hello world/blink from the examples (actually its my first sketch :-) )

Code: Select allvoid setup() {
  pinMode(5, OUTPUT);
}

void loop() {
  digitalWrite(5, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(5, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}


Be nice if someone else on the board can test this out with nodeMCU Dev board..

Angelo
User avatar
By torntrousers
#20794 How do you know that is not working though?
Try adding some prints to see if they appear:
Code: Select allvoid setup() {
  pinMode(5, OUTPUT);
  Serial.begin(115200);
}

void loop() {
  Serial.println("Hello");
  digitalWrite(5, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(5, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}
User avatar
By Angelo Santagata
#20798 actually one of my simpler ones was quite simply Println / delay + loop.. anyway, I cut-n-pasted your example and deployed that to the same effect..

I also grounded the D8 (GPIO15) pin

Edit : Ive uploaded the "temp" compile directory with all the artifacts + generated bin files to dropbox, this link https://dl.dropboxusercontent.com/u/16856082/AngelosHelloWorld_ESP8266_NodeMCU.7z

If someone could download, unzip and flash the bins , be nice to see if it actually works for them.. then I could determine if it were a compiler or wiring issue.. my gut feeling is compiler...
User avatar
By tytower
#20850
Angelo Santagata wrote:mmmm

Does this apply to the nodeMCU dev board??? Im using a nodeMCU board it and flashes fine.

**However** Ive just checked GPIO15 and its not being pulled to ground.. so Ive added a wire there.. I'll also add the others later today.
One connector I cant find is CH_PD on the schematic @ https://github.com/nodemcu/nodemcu-devkit


It applies to the chip on your board . If 15 is high or gets high on boot then SDIO mode is enabled on the chip which is quite a different thing .

CH_PD is called EN it seems on yours .
Yes your board should run on arduino as is unless you have altered something