arduino-audio-tools
Loading...
Searching...
No Matches
rp2040hower.h
1#pragma once
2
3#define RP2040_HOWER
4#define USE_SD_NO_NS
5#define USE_I2S
6#define USE_PWM
7#define USE_ANALOG_ARDUINO
8#define USE_TYPETRAITS
9#define USE_TIMER
10#define USE_INT24_FROM_INT
11
12#define PIN_ANALOG_START 26
13#define PIN_PWM_START 6
14#define PIN_I2S_BCK 26
15#define PIN_I2S_WS PIN_I2S_BCK+1
16#define PIN_I2S_DATA_IN 28
17#define PIN_I2S_DATA_OUT 28
18#define PIN_I2S_MCK -1
19// Default Setting: The mute pin can be switched actovated by setting it to a gpio (e.g 4). Or you could drive the LED by assigning LED_BUILTIN
20#define PIN_I2S_MUTE -1
21#define SOFT_MUTE_VALUE 0
22#define PIN_CS PIN_SPI0_SS
23#define USE_SERVER_ACCEPT true
24
25// fix missing __sync_synchronize symbol
26//#define FIX_SYNC_SYNCHRONIZE
27#define IRAM_ATTR
28
29#ifndef ANALOG_BUFFER_SIZE
30#define ANALOG_BUFFER_SIZE 256
31#endif
32
33#ifndef ANALOG_BUFFERS
34#define ANALOG_BUFFERS 100
35#endif
36
37//#define USE_CONCURRENCY
38#define USE_SD_SUPPORTS_SPI
39
40// default pins for VS1053 shield
41#define VS1053_CS 17
42#define VS1053_DCS 9
43#define VS1053_DREQ 10
44#define VS1053_CS_SD -1
45#define VS1053_RESET 11
46#define VS1053_DEFINED
47
48// The Pico W has WIFI support: but platformio is messing up, so we support NO_WIFI
49#if (LWIP_IPV4==1 || LWIP_IPV6==1) &&!defined(NO_WIFI)
50# include <WiFi.h>
51# define USE_WIFI
52# define USE_WIFI_CLIENT_SECURE
53# define USE_URL_ARDUINO
54# define USE_AUDIO_SERVER
55using WiFiServerSecure = BearSSL::WiFiServerSecure;
56#endif
57