Mozzi
version v1.1.0
sound synthesis library for Arduino
AudioConfigTeensy3_12bit.h
1
#
ifndef
AUDIOCONFIGTEENSY3_12BIT_H
2
#
define
AUDIOCONFIGTEENSY3_12BIT_H
3
4
5
/** @ingroup core
6
*/
7
/* Used internally to put the 0-biased generated audio into the centre of the output range (12 bits on Teensy 3) */
8
#
define
AUDIO_BIAS
(
(
uint16_t
)
2048
)
9
#
define
AUDIO_BITS
12
10
11
#
if
!
defined
(
AUDIO_CHANNEL_1_PIN
)
&&
defined
(
__arm__
)
&&
defined
(
CORE_TEENSY
)
12
#
if
defined
(
__MKL26Z64__
)
13
#
define
AUDIO_CHANNEL_1_PIN
A12
14
#
elif
defined
(
__MK20DX128__
)
||
defined
(
__MK20DX256__
)
15
#
define
AUDIO_CHANNEL_1_PIN
A14
16
#
elif
defined
(
__MK64FX512__
)
||
defined
(
__MK66FX1M0__
)
17
#
define
AUDIO_CHANNEL_1_PIN
A21
18
#
else
19
#
error
"Unknown Teensy"
20
#
endif
21
#
endif
22
23
#
endif
// #ifndef AUDIOCONFIGTEENSY3_12BIT_H
AudioConfigTeensy3_12bit.h
Generated on Mon Feb 8 2021 17:03:47 for Mozzi by
1.8.14