This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.instructables.com/id/Programming-a-HTTP-Server-on-ESP-8266-12E/ | |
#include <ESP8266WiFi.h> | |
const short int BUILTIN_LED1 = 2; //GPIO2 | |
const short int BUILTIN_LED2 = 16;//GPIO16 | |
#define LED_PIN BUILTIN_LED2 | |
WiFiServer server(80); //Initialize the server on Port 80 | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script uses a simplified version of the one here: | |
https://snipt.net/restrada/python-selenium-workaround-for-full-page-screenshot-using-chromedriver-2x/ | |
It contains the *crucial* correction added in the comments by Jason Coutu. | |
""" | |
# system modules | |
import sys | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By |