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
#
warning
If
you
get
a
compilation
error
you
should
probably
update
Teensyduino
to
its
latest
version
5
6
/** @ingroup core
7
*/
8
/* Used internally to put the 0-biased generated audio into the centre of the output range (12 bits on Teensy 3) */
9
#
define
AUDIO_BIAS
(
(
uint16_t
)
2048
)
10
#
define
AUDIO_BITS
12
11
12
#
if
!
defined
(
AUDIO_CHANNEL_1_PIN
)
&&
defined
(
__arm__
)
&&
defined
(
CORE_TEENSY
)
13
#
if
defined
(
__MKL26Z64__
)
14
#
define
AUDIO_CHANNEL_1_PIN
A12
15
#
elif
defined
(
__MK20DX128__
)
||
defined
(
__MK20DX256__
)
16
#
define
AUDIO_CHANNEL_1_PIN
A14
17
#
elif
defined
(
__MK64FX512__
)
||
defined
(
__MK66FX1M0__
)
18
#
define
AUDIO_CHANNEL_1_PIN
A21
19
#
else
20
#
error
"Unknown Teensy"
21
#
endif
22
#
endif
23
24
#
endif
// #ifndef AUDIOCONFIGTEENSY3_12BIT_H
AudioConfigTeensy3_12bit.h
Generated on Thu Mar 16 2023 14:01:35 for Mozzi by
1.8.14