Skip to content

Instantly share code, notes, and snippets.

View TheGreyDiamond's full-sized avatar

TheGreyDiamond

View GitHub Profile
@TheGreyDiamond
TheGreyDiamond / arduinoMoonsideControllerDemo.ino
Last active December 15, 2022 21:05
Moonside Lamp BLE Connector
/**
* A BLE controller for Moonside lamps, tested with a Moonside Lighthouse.
* It has some errors with reconnecting after loosing WiFi connection.
*/
#include "BLEDevice.h"
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ArduinoOTA.h>
<style>
.attention-active {
animation-name: attention;
animation-duration: 3s;
animation-iteration-count: infinite;
margin: 0px;
padding: 0px;
}
@keyframes attention {
20% {background-color: transparent;}
<!DOCTYPE html>
<html>
<head>
<title>Site unavaible</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body {
height: 100%;
margin: 0;