Skip to content

Commit d34a47b

Browse files
committed
minor refactor
1 parent cd67712 commit d34a47b

File tree

14 files changed

+32
-31
lines changed

14 files changed

+32
-31
lines changed

player/src/AudioOutput/PDMOutput.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
#include <freertos/FreeRTOS.h>
3+
#include <driver/i2s.h>
4+
5+
#include "I2SBase.h"
6+
7+
/**
8+
* Base Class for both the ADC and I2S sampler
9+
**/
10+
class PDMOutput : public I2SBase
11+
{
12+
private:
13+
i2s_pin_config_t m_i2s_pins;
14+
public:
15+
PDMOutput(i2s_port_t i2s_port, i2s_pin_config_t &i2s_pins);
16+
void start(uint32_t sample_rate);
17+
};

0 commit comments

Comments
 (0)