Closed artificiel closed 1 year ago
You could look, for example at the Teensy specific i2x_t3 library to see how it does that.
#if defined(__AVR__)
#error "Sorry, i2c_t3 only works on Teensy LC and 3.x boards. Use Wire for Teensy 2.0."
#elif defined(__IMXRT1062__)
#error "Sorry, i2c_t3 only works on Teensy LC and 3.x. Use Wire for Teensy 4.0, 4.1, MicroMod."
#endif
#if !defined(I2C_T3_H) && (defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__) || \
defined(__MK64FX512__) || defined(__MK66FX1M0__)) // 3.0/3.1-3.2/LC/3.5/3.6
#define I2C_T3_H
hello! in order for this to work on the Teensy4.1, the includes in
EthernetBonjour.cpp
must be changed from:to
what is the correct way of automatically selecting the proper includes based on the hardware?