arduino-audio-tools
Loading...
Searching...
No Matches
desktop.h
1#pragma once
2
3#if defined(IS_MIN_DESKTOP)
5# include "AudioTools/AudioLibs/Desktop/Time.h"
6# include "AudioTools/AudioLibs/Desktop/Main.h"
7# define USE_STREAM_READ_OVERRIDE
8# define USE_SD_NO_NS
9# define USE_TIMER
10# define USE_CPP_TASK
11# ifndef EXIT_ON_STOP
12# define EXIT_ON_STOP
13# endif
14#elif defined(IS_DESKTOP_WITH_TIME_ONLY)
15# include "AudioTools/AudioLibs/Desktop/Time.h"
17# define USE_SD_NO_NS
18# define USE_TIMER
19# define USE_CPP_TASK
20# ifndef EXIT_ON_STOP
21# define EXIT_ON_STOP
22# endif
23#elif defined(IS_DESKTOP)
24# include "Arduino.h"
25# include <Client.h>
26# include <WiFi.h>
27# define USE_SD_NO_NS
28# define USE_WIFI
29# define USE_URL_ARDUINO
30# define USE_STREAM_WRITE_OVERRIDE
31# define USE_STREAM_READ_OVERRIDE
32# define USE_STREAM_READCHAR_OVERRIDE
33# ifndef EXIT_ON_STOP
34# define EXIT_ON_STOP
35# endif
36# define USE_TIMER
37# define USE_CPP_TASK
38//# define USE_3BYTE_INT24
39typedef WiFiClient WiFiClientSecure;
40#elif defined(ARDUINO)
41# include "Arduino.h"
42// --- ESP32 ------------
43// E.g when using the Espressif IDF. Use cmake for the necesseary defines
44#elif defined(ESP32_CMAKE)
45# define ESP32
46# include "esp_idf_version.h"
48#else
50# define IS_JUPYTER
51# define USE_STREAM_READ_OVERRIDE
52#endif
If you want to use the framework w/o Arduino you need to provide the implementation of a couple of cl...