Generate presets !
Fix 1d/2d default in customeffect, games and weather index.htm: add buttons and text area for genPresets index.js: add genPresets, uploadFileWithText and savePresetsGen fx,cpp: set fire 2012 default palette 0 (fire colors) Bonus: battery USERMOD_BATTERY_MEASUREMENT_PIN default -1
This commit is contained in:
@@ -14,7 +14,7 @@ uint16_t mode_2DWeather(void) {
|
||||
|
||||
return FRAMETIME;
|
||||
}
|
||||
static const char _data_FX_MODE_2DWEATHER[] PROGMEM = "Weather@;!;!;pal=54,2d"; //temperature palette
|
||||
static const char _data_FX_MODE_2DWEATHER[] PROGMEM = "Weather@;!;!;2;pal=54"; //temperature palette
|
||||
```
|
||||
* then activated in the usermod setup function
|
||||
```c++
|
||||
|
||||
@@ -94,7 +94,7 @@ uint16_t mode_2DWeather(void) {
|
||||
return FRAMETIME;
|
||||
}
|
||||
|
||||
static const char _data_FX_MODE_2DWEATHER[] PROGMEM = "Weather@;!;!;pal=54,2d"; //temperature palette
|
||||
static const char _data_FX_MODE_2DWEATHER[] PROGMEM = "Weather@;!;!;2;pal=54"; //temperature palette
|
||||
|
||||
//utility function, move somewhere else???
|
||||
void epochToString(time_t time, char *timeString) {
|
||||
|
||||
Reference in New Issue
Block a user