Many Arduino boards declare the constant DAC0.
This is missing in Teensy 3 code.
Like the constants SDA and SCL are declared, there should be also the corresponding constants DAC0, DAC1.
For Teensy 3.1:
#define DAC0 A14
For Teensy LC:
#define DAC0 A12
For MK66FX1M0:
#define DAC0 A21
#define DAC1 A22
This is missing in Teensy 3 code.
Like the constants SDA and SCL are declared, there should be also the corresponding constants DAC0, DAC1.
For Teensy 3.1:
#define DAC0 A14
For Teensy LC:
#define DAC0 A12
For MK66FX1M0:
#define DAC0 A21
#define DAC1 A22