WLED/wled00/wled_set.h
2020-03-25 04:00:55 -04:00

12 lines
439 B
C

#ifndef WLED_SET_H
#define WLED_SET_H
#include <Arduino.h>
#include <ESPAsyncWebServer.h>
void _setRandomColor(bool _sec,bool fromButton=false);
bool isAsterisksOnly(const char* str, byte maxLen);
void handleSettingsSet(AsyncWebServerRequest *request, byte subPage);
int getNumVal(const String* req, uint16_t pos);
bool updateVal(const String* req, const char* key, byte* val, byte minv=0, byte maxv=255);
#endif // WLED_SET_H