Skip to content

Commit 0d0fc5c

Browse files
committed
rename Pins.h
1 parent 049ce8d commit 0d0fc5c

File tree

6 files changed

+259
-36
lines changed

6 files changed

+259
-36
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ WARN_LOGFILE =
865865
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
866866
# Note: If this tag is empty the current directory is searched.
867867

868-
INPUT = README.md src examples docs/ext
868+
INPUT = README.md src
869869

870870
# This tag can be used to specify the character encoding of the source files
871871
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

License.txt

Lines changed: 216 additions & 0 deletions
Large diffs are not rendered by default.

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ version=0.0.1
33
author=Phil Schatzmann
44
maintainer=Phil Schatzmann
55
sentence=Audio Codecs
6-
paragraph=Arduino Library providing many Audio Codecs
6+
paragraph=Arduino Library which is providing many Audio Codecs
77
category=Signal Input/Output
8-
url=https://github.com/pschatzmann/audio-driver
8+
url=https://github.com/pschatzmann/arduino-audio-driver
99
architectures=*
1010
depends=

src/AudioBoard.h

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#pragma once
22
#include "Driver.h"
3-
#include "Pins.h"
3+
#include "DriverPins.h"
44

55
namespace audio_driver {
66

7-
/// @ingroup audio_driver @brief Pins need to be set up in the sketch
8-
static DriverPins NoPins;
9-
107
/**
118
* @brief Defitintion for audio board pins and an audio driver
129
* @ingroup audio_driver
@@ -48,34 +45,6 @@ class AudioBoard {
4845
AudioDriver* driver = nullptr;
4946
};
5047

51-
// -- Drivers
52-
/// @ingroup audio_driver
53-
static AudioDriverES8388Class AudioDriverES8388;
54-
/// @ingroup audio_driver
55-
static AudioDriverAC101Class AudioDriverAC101;
56-
/// @ingroup audio_driver
57-
static AudioDriverCS43l22Class AudioDriverCS43l22;
58-
/// @ingroup audio_driver
59-
static AudioDriverES8311Class AudioDriverES8311;
60-
/// @ingroup audio_driver
61-
static AudioDriverES7243Class AudioDriverES7243;
62-
/// @ingroup audio_driver
63-
static AudioDriverLyratMiniClass AudioDriverLyratMini;
64-
65-
// -- Pins
66-
/// @ingroup audio_driver
67-
static PinsLyrat43Class PinsLyrat43;
68-
/// @ingroup audio_driver
69-
static PinsLyrat42Class PinsLyrat42;
70-
/// @ingroup audio_driver
71-
static PinsLyratMiniClass PinsLyratMini;
72-
/// @ingroup audio_driver
73-
static PinsAudioKitEs8388v1Class PinsAudioKitEs8388v1;
74-
/// @ingroup audio_driver
75-
static PinsAudioKitEs8388v2Class PinsAudioKitEs8388v2;
76-
/// @ingroup audio_driver
77-
static PinsAudioKitAC101Class PinsAudioKitAC101;
78-
7948
// -- Boards
8049
/// @ingroup audio_driver
8150
static AudioBoard AudioKitEs8388V1{&AudioDriverES8388, PinsAudioKitEs8388v1};
@@ -90,4 +59,5 @@ static AudioBoard LyratV42{&AudioDriverES8388, PinsLyrat42};
9059
/// @ingroup audio_driver
9160
static AudioBoard LyratMini{&AudioDriverLyratMini, PinsLyratMini};
9261

62+
9363
}

src/Driver.h

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "Driver/es7243/es7243.h"
77
#include "Driver/es8311/es8311.h"
88
#include "Driver/es8388/es8388.h"
9-
#include "Pins.h"
9+
#include "DriverPins.h"
1010

1111
namespace audio_driver {
1212

@@ -390,4 +390,20 @@ class AudioDriverCS43l22Class : public AudioDriver {
390390
}
391391
};
392392

393+
// -- Drivers
394+
/// @ingroup audio_driver
395+
static AudioDriverES8388Class AudioDriverES8388;
396+
/// @ingroup audio_driver
397+
static AudioDriverAC101Class AudioDriverAC101;
398+
/// @ingroup audio_driver
399+
static AudioDriverCS43l22Class AudioDriverCS43l22;
400+
/// @ingroup audio_driver
401+
static AudioDriverES8311Class AudioDriverES8311;
402+
/// @ingroup audio_driver
403+
static AudioDriverES7243Class AudioDriverES7243;
404+
/// @ingroup audio_driver
405+
static AudioDriverLyratMiniClass AudioDriverLyratMini;
406+
407+
408+
393409
} // namespace audio_driver

src/Pins.h renamed to src/DriverPins.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,4 +517,25 @@ class PinsSTM32F411DiscoClass : public DriverPins {
517517

518518
#endif
519519

520+
521+
// -- Pins
522+
/**
523+
* @brief Pins need to be set up in the sketch
524+
* @ingroup audio_driver
525+
*/
526+
static DriverPins NoPins;
527+
/// @ingroup audio_driver
528+
static PinsLyrat43Class PinsLyrat43;
529+
/// @ingroup audio_driver
530+
static PinsLyrat42Class PinsLyrat42;
531+
/// @ingroup audio_driver
532+
static PinsLyratMiniClass PinsLyratMini;
533+
/// @ingroup audio_driver
534+
static PinsAudioKitEs8388v1Class PinsAudioKitEs8388v1;
535+
/// @ingroup audio_driver
536+
static PinsAudioKitEs8388v2Class PinsAudioKitEs8388v2;
537+
/// @ingroup audio_driver
538+
static PinsAudioKitAC101Class PinsAudioKitAC101;
539+
540+
520541
} // namespace audio_driver

0 commit comments

Comments
 (0)