ARTI-FX support 8266 (experimental!!) add soundpressure

Add ARTI-FX to esp8266_4MB_M (experimental!)

Arti.h
- FREE_SIZE ESP.getFreeHeap() for 8266
- define asChar(x) to print to Serial/File depending on ESP32/8266
- artiPrintf: print to USER_PRINTF (experimental)

Arti_wled.h
- add ARDUINO_ARCH_ESP8266 to ARTI_ARDUINO
- add soundPressure

usermod_v2_artifx.h: use FREE_SIZE
This commit is contained in:
Ewoud
2023-04-07 12:43:38 +02:00
parent 20a91454d1
commit 4aea3970a3
9 changed files with 97 additions and 77 deletions

View File

@@ -6310,7 +6310,7 @@ uint16_t mode_gravimeter(void) { // Gravmeter. By Andrew Tuline.
um_data = simulateSound(SEGMENT.soundSim);
}
float volumeSmth = *(float*) um_data->u_data[0];
int16_t volumeRaw = *(int16_t*)um_data->u_data[1];
// int16_t volumeRaw = *(int16_t*)um_data->u_data[1]; //WLEDMM: this variable not used here
float soundPressure = *(float*) um_data->u_data[9];
float agcSensitivity= *(float*) um_data->u_data[10];
#ifdef SR_DEBUG

View File

@@ -583,7 +583,6 @@ bool Segment::jsonToPixels(char * name, uint8_t fileNr) {
}
}
}
USER_PRINTLN();
releaseJSONBufferLock();
return true;

View File

@@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2304061
#define VERSION 2304070
//uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG