File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
#pragma once
8
8
9
- #define AUDIOTOOLS_VERSION " 1.0.0 "
9
+ #define AUDIOTOOLS_VERSION " 1.0.1 "
10
10
#define AUDIOTOOLS_MAJOR_VERSION 1
11
11
#define AUDIOTOOLS_MIOR_VERSION 0
12
12
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ inline uint64_t micros() { return xTaskGetTickCount() * portTICK_PERIOD_MS * 100
16
16
17
17
#endif
18
18
19
+ namespace audio_tools {
19
20
20
21
/* *
21
22
* @brief Public generic methods
@@ -42,4 +43,28 @@ inline static void checkMemory(bool memoryCheck=false) {
42
43
#endif
43
44
}
44
45
46
+ #ifdef ARDUINO
47
+ inline void printNChar (char ch, int n){
48
+ for (int j=0 ;j<n;j++) Serial.print (ch);
49
+ Serial.println ();
50
+ }
51
+
52
+ // / prints the available version information
53
+ inline void printVersionInfo () {
54
+ printNChar (' *' ,50 );
55
+ Serial.print (" AudioTools: " );
56
+ Serial.println (AUDIOTOOLS_VERSION);
57
+ Serial.print (" Arduino: " );
58
+ Serial.println (ARDUINO);
59
+ #ifdef ESP32
60
+ Serial.print (" Arduino ESP Core Version: " );
61
+ Serial.println (ESP_ARDUINO_VERSION_STR);
62
+ Serial.print (" IDF Version: " );
63
+ Serial.println (IDF_VER);
64
+ #endif
65
+ printNChar (' *' ,50 );
66
+ }
67
+
68
+ #endif
45
69
70
+ }
You can’t perform that action at this time.
0 commit comments