Files
WLED_MM_Infinity/wled00/wled00.ino
Ewoud b195596ad7 package.json and cdata.js: set urls to MoonModules
index.js: add logging (temp) and improve segment view redrawing
wled00.ini: add lps (temp)
wledserver.cpp: show client request done after its done
ws.cpp: show websocket events (temp?)
2023-05-24 11:49:47 +02:00

33 lines
853 B
C++

/*
* WLED Arduino IDE compatibility file.
*
* Where has everything gone?
*
* In April 2020, the project's structure underwent a major change.
* Global variables are now found in file "wled.h"
* Global function declarations are found in "fcn_declare.h"
*
* Usermod compatibility: Existing wled06_usermod.ino mods should continue to work. Delete usermod.cpp.
* New usermods should use usermod.cpp instead.
*/
#include "wled.h"
unsigned long lastMillis = 0; //WLEDMM
unsigned long loopCounter = 0; //WLEDMM
void setup() {
WLED::instance().setup();
}
void loop() {
//WLEDMM show loops per second
loopCounter++;
if (millis() - lastMillis >= 10000) {
USER_PRINTF("%lu / %lu = %lu lps\n",loopCounter, millis()/1000, 1000 * loopCounter / millis());
lastMillis = millis();
loopCounter = 0;
}
WLED::instance().loop();
}