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# ifndef EXIT_ON_STOP
10# define EXIT_ON_STOP
11# endif
12#elif defined(IS_DESKTOP_WITH_TIME_ONLY)
13# include "AudioTools/AudioLibs/Desktop/Time.h"
15# define USE_SD_NO_NS
16# ifndef EXIT_ON_STOP
17# define EXIT_ON_STOP
18# endif
19#elif defined(IS_DESKTOP)
20# include "Arduino.h"
21# include <Client.h>
22# include <WiFi.h>
23# define USE_SD_NO_NS
24# define USE_WIFI
25# define USE_URL_ARDUINO
26# define USE_STREAM_WRITE_OVERRIDE
27# define USE_STREAM_READ_OVERRIDE
28# define USE_STREAM_READCHAR_OVERRIDE
29# ifndef EXIT_ON_STOP
30# define EXIT_ON_STOP
31# endif
32//# define USE_3BYTE_INT24
33typedef WiFiClient WiFiClientSecure;
34#elif defined(ARDUINO)
35# include "Arduino.h"
36// --- ESP32 ------------
37// E.g when using the Espressif IDF. Use cmake for the necesseary defines
38#elif defined(ESP32_CMAKE)
39# define ESP32
40# include "esp_idf_version.h"
42#else
44# define IS_JUPYTER
45# define USE_STREAM_READ_OVERRIDE
46#endif
If you want to use the framework w/o Arduino you need to provide the implementation of a couple of cl...