Moved pin config into seperate config file

This commit is contained in:
2022-09-29 03:00:20 +02:00
parent 3a3c4c68ff
commit 9cbeee2c4d
4 changed files with 15 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
#pragma once
#include "hal/gpio_types.h"
#define I2S_PIN_BCK GPIO_NUM_26
#define I2S_PIN_WS GPIO_NUM_25
#define I2S_PIN_DATA GPIO_NUM_33
#define TWAI_PIN_CTX GPIO_NUM_5
#define TWAI_PIN_CRX GPIO_NUM_19

View File

@@ -2,7 +2,6 @@
#include <cstdint>
#define WAV_PLAY_HELPER(str) #str
#define WAV_PLAY(NAME) {\
extern const uint8_t _binary_ ## NAME ## _wav_start[]; \
extern const uint8_t _binary_ ## NAME ## _wav_end[]; \