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
!nAvBpnooq4)liDAbPDROfw2B)W(HceylQnTGdhF405gtItRxsTZz7uOS3LF73m2XTfkCAvRsCMmE888mVfAxAcLSGsYX)WsvTTui5uY4BtgoioIskuslr8mNgFcLyvzl5AJqjPX)(HhD4HucR2oxPhxzbHgWeXot(Oi3ohxtSRQaZz4L8mlL8aFfLimLmzEI7f58cwDPLgFeLizlajrs29L8M0(1w1NUUMxdYQn8Z5Mm6PuYswznV9GiXk9cwjnUhL8DUwjYC2z0k7CC5XuYKLtOXFMsoxyqRsT4jcgI4mCt6aNR0Kg9ufpxGyOjfqKAbZkYyLLRAsFCoheMvkYEqiN1KIQyNd71IwSdys44tca1QMndohpqR08fSC(20raVNgG7eVonPJLLREbs9okkUj9Vr310EWIwNMVLtlkAsxPQbVxJAGWOjTkyBf82JGN5QkVlJ8GWuvYwLWFcEO5kkz14IcdhGdev18zGz9HiRtJmvPs7PD8Fp31JCxpg3cOYtBzGSAdWIOXVTkNzbZWxYLwx(INDVZXjemmdsZc5peJLPTWcqxHuGRi5QPE7H0s7ksPccqnP5IIcrgqPRgXQQCrOV1K(ZM0UFP3jFeVDu7TV4UDsVM0)T5QD2DmenmH9UNpXApyh75tSCl9jwULqI1Eod1CfRwZMYLl74csxO0HKkWwf1shY2)aqZu)pmuT)DC2d9HnA6mW0w8mUId6DGlil3OE4NMBR1BjNdhXvBESfq(cnE(5RbMZpw7JzkzHywNnLGVYV2)1AUjhs)ow)BUCR)VxFmakhJCj3gxV4sTQUAeFX9qReGysB(h0ebGha67aW8xcSDc))5UoXF9kmUzpVlzVRKkTqA33yHBZ6uGPh29)WEHq9ajK2kTnPU(kqMri(2w6M3wDwG00Vz(Wh3j17T87doyx)4SP(Z04oPox)ICUxaTxMPaxWsQcOMYm3vEbpbOz2mikSUVDRGn9ZcvBM67DfWKA4aEIsMEwFsYuss)BscknDUa71zfl45Rl |
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
-- h must be [0.0, 1.0] | |
-- based on [0.0, 360.0] degrees on the HSV color circle | |
function MDT_GetHueColor(h) | |
local i = math.floor(h * 6) | |
local f = h * 6 - i | |
local q = 1 - f | |
i = i % 6 | |
local r, g, b |
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
#include <NeoPixelBrightnessBus.h> | |
#define PIXEL_COUNT 9 | |
NeoPixelBrightnessBus<NeoGrbFeature, Neo800KbpsMethod> strip(PIXEL_COUNT); | |
void setup() { | |
strip.Begin(); | |
strip.SetBrightness(0xFF); | |
strip.Show(); |
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
struct rgbw_t { | |
uint8_t r, g, b, w; | |
}; | |
struct light_state_t { | |
rgbw_t start_color {0, 0, 0, 0}; | |
rgbw_t target_color {0, 0, 0, 0}; | |
uint32_t start_time = 0; | |
uint32_t duration_time = 0; | |
bool update = false; |
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
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
#define WIFI_MAC 0xD2, 0x9A, 0x44, 0x49, 0x13, 0xE6 | |
//#define WIFI_MAC 0xA3, 0x9C, 0x2E, 0xFA, 0xAE, 0xC3 | |
#define WIFI_SSID "###SSID_HERE###" | |
#define WIFI_PASSWORD "###PASSWORD_HERE###" | |
#define WIFI_HOSTNAME "UDP_Test_###SOME_NUMBER###" | |
#define WIFI_UDP_PORT 4220 |