refactoring
This commit is contained in:
+1
-7
@@ -1,19 +1,13 @@
|
||||
#include <WiFi.h>
|
||||
#include <WebServer.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include "structs.h"
|
||||
|
||||
const char* ssid = "PPIA";
|
||||
const char* password = "pawelpdaldonejta";
|
||||
|
||||
WebServer server(80);
|
||||
|
||||
// Declare the new_image buffer to temporarily store uploaded image
|
||||
struct Pixel {
|
||||
unsigned short x;
|
||||
unsigned short y;
|
||||
uint32_t color;
|
||||
};
|
||||
|
||||
Pixel new_image[16][16];
|
||||
|
||||
void handleRoot() {
|
||||
|
||||
Reference in New Issue
Block a user