Mozzi  version v1.1.0
sound synthesis library for Arduino
AudioConfigSAMD21.h
1 #ifndef AUDIOCONFIGSAMD21_H
2 #define AUDIOCONFIGSAMD21_H
3 
4 /* Note: SAMD21 has 12 bits ADC, but only 10 bits DAC. See https://github.com/sensorium/Mozzi/issues/75 */
5 #define AUDIO_BITS 10
6 
7 /** @ingroup core
8 */
9 /* Used internally to put the 0-biased generated audio into the centre of the output range (10 bits) */
10 #define AUDIO_BIAS ((uint16_t) 1 << (AUDIO_BITS - 1))
11 
12 #define AUDIO_CHANNEL_1_PIN DAC0
13 
14 #endif // #ifndef AUDIOCONFIGSAMD21_H
#define AUDIO_BITS
Definition: MozziGuts.h:228