Hi @Jamin. Great thanks. Even with my limited knowledge, I think that the issue is somewhere in the main part of the script. I reckon this because I can rem out all but Blynk.run() in the loop and I still get the same error message. Here it is.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blynk.cc
Blynk community: http://community.blynk.cc
Follow us: http://www.fb.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*************************************************************
You’ll need:
- Blynk App (download from AppStore or Google Play)
- ESP8266 board
- Decide how to connect to Blynk
(USB, Ethernet, Wi-Fi, Bluetooth, ...)
There is a bunch of great example sketches included to show you how to get
started. Think of them as LEGO bricks and combine them as you wish.
For example, take the Ethernet Shield sketch and combine it with the
Servo example, or choose a USB sketch and add a code from SendData
example.
*************************************************************/
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#define interval 5000 // The interval in mS
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <elapsedMillis.h>
#include <Timer.h>
elapsedMillis Time;
boolean TimeFired;
char auth[] = "myAuthenticationCodeHere"; //
char ssid[] = "localRouterName";
char pass[] = "password";
int reset = D3; // D3 Pin is active high and used for reset of Arduino
void setup()
{
Serial.begin(112500); // Start serial monitor
pinMode(reset, OUTPUT); //Set up D3 pin on Wemos D1 to output
pinMode(0, OUTPUT); // sets the digital pin 0 as output 0
pinMode(1, OUTPUT); // sets the digital pin 1 as output 1
pinMode(2, OUTPUT); // sets the digital pin 2 as output 2
pinMode(5, OUTPUT); // sets the digital pin 5 as output 5
pinMode(6, OUTPUT); // sets the digital pin 6 as output 6
pinMode(7, OUTPUT); // sets the digital pin 7 as output 7
TimeFired = true; // was TimeFired = false;
Time = 0; // clear the timer at the end of startup
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
}
void pinout()
{
digitalWrite(0, LOW); // Reset pin 0
digitalWrite(1, LOW); // Reset pin 1
digitalWrite(2, LOW); // Reset pin 2
digitalWrite(5, LOW); // Reset pin 5
digitalWrite(6, LOW); // Reset pin 6
digitalWrite(7, LOW); // Reset pin 7
delay(1000);
digitalWrite(0, HIGH); // Normalise pin 0
digitalWrite(1, HIGH); // Normalise pin 1
digitalWrite(2, HIGH); // Normalise pin 2
digitalWrite(5, HIGH); // Normalise pin 5
digitalWrite(6, HIGH); // Normalise pin 6
digitalWrite(7, HIGH); // Normalise pin 7
digitalWrite(reset, LOW); // Sent Arduino reset low until Wemos connects to web
}
void loop()
{
if ((!TimeFired) && (Time > interval)) // don't execute this again if time greater than 5000 millis
digitalWrite(reset, HIGH);
TimeFired = false;
digitalWrite(reset, HIGH);
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}