This file contains hidden or 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 <LEDMatrixDriver.hpp> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
const char* ssid = "WIFIID"; | |
const char* password = "WIFIPASSWORD"; | |
// TCP server at port 80 will respond to HTTP requests | |
WiFiServer server(80); | |
This file contains hidden or 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 inRange = (max, min) => Math.floor(Math.random() * (max - min + 1)) + min | |
- const amount = 30 | |
- for (let g = 0; g < amount; g++) | |
- let angle = inRange(45, 95) | |
- let speed = inRange(8, 20) | |
- let delay = inRange(1, 25) | |
- let x = inRange(0, 80) | |
- let y = inRange(0, 25) | |
- let travel = inRange(10, 50) | |
- let trail = inRange(1, 5) |