Skip to content

Instantly share code, notes, and snippets.

@parthao
parthao / Witty_Check.ino
Created October 5, 2019 17:32
Witty Basic RGB Blink
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(15, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(15, HIGH); // turn the LED on (HIGH is the voltage level)
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#ifdef ESP32
#pragma message(THIS EXAMPLE IS FOR ESP8266 ONLY!)
#error Select ESP8266 board.
#endif
ESP8266WebServer server(80); // 80 is the port number