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 <ESP8266WebServer.h> | |
#define ROWS 4 | |
#define COLS 10 | |
ESP8266WebServer server(80); | |
static const String head PROGMEM = "<!DOCTYPE html><html lang=\"en\"><head><title>PixelSack</title><style>.row {display: flex;} .color-input {width: 25px;height: 25px;}</style></head><body><form action=\"/\" method=\"post\">"; |
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
const std = @import("std"); | |
const net = std.event.net; | |
const warn = std.debug.warn; | |
const request = "GET / HTTP/1.1\r\nHost: localhost:8000\r\n\r\n"; | |
async fn asyncClient(loop: *std.event.Loop, address: *const std.net.Address) error!void { | |
errdefer @panic("asyncClient"); | |
warn("connecting\n"); |