diff --git a/defines.h b/defines.h index 88f7fb4..5582e8b 100644 --- a/defines.h +++ b/defines.h @@ -47,115 +47,115 @@ #define I2C_EXTENDED_ADDRESS #if defined(ARDUINO_AVR_UNO) -#define ARDUINO_TYPE "UNO" -#undef HAS_ENOUGH_MEMORY -#define NO_EXTENDED_CHARACTERS -#undef I2C_EXTENDED_ADDRESS + #define ARDUINO_TYPE "UNO" + #undef HAS_ENOUGH_MEMORY + #define NO_EXTENDED_CHARACTERS + #undef I2C_EXTENDED_ADDRESS #elif defined(ARDUINO_AVR_NANO) -#define ARDUINO_TYPE "NANO" -#undef HAS_ENOUGH_MEMORY -#define NO_EXTENDED_CHARACTERS -#undef I2C_EXTENDED_ADDRESS + #define ARDUINO_TYPE "NANO" + #undef HAS_ENOUGH_MEMORY + #define NO_EXTENDED_CHARACTERS + #undef I2C_EXTENDED_ADDRESS #elif defined(ARDUINO_AVR_MEGA) -#define ARDUINO_TYPE "MEGA" + #define ARDUINO_TYPE "MEGA" #elif defined(ARDUINO_AVR_MEGA2560) -#define ARDUINO_TYPE "MEGA" + #define ARDUINO_TYPE "MEGA" #elif defined(ARDUINO_ARCH_MEGAAVR) -#define ARDUINO_TYPE "MEGAAVR" -#undef HAS_ENOUGH_MEMORY -#define NO_EXTENDED_CHARACTERS -#undef I2C_EXTENDED_ADDRESS + #define ARDUINO_TYPE "MEGAAVR" + #undef HAS_ENOUGH_MEMORY + #define NO_EXTENDED_CHARACTERS + #undef I2C_EXTENDED_ADDRESS #elif defined(ARDUINO_TEENSY31) -#define ARDUINO_TYPE "TEENSY3132" -#undef USB_SERIAL -#define USB_SERIAL SerialUSB -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif -// Teensy support for native I2C is awaiting development -#ifndef I2C_USE_WIRE - #define I2C_USE_WIRE -#endif -#elif defined(ARDUINO_TEENSY35) -#define ARDUINO_TYPE "TEENSY35" -#undef USB_SERIAL -#define USB_SERIAL SerialUSB -// Teensy support for I2C is awaiting development -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif -// Teensy support for native I2C is awaiting development -#ifndef I2C_USE_WIRE - #define I2C_USE_WIRE -#endif -#elif defined(ARDUINO_TEENSY36) -#define ARDUINO_TYPE "TEENSY36" -#undef USB_SERIAL -#define USB_SERIAL SerialUSB -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif -// Teensy support for native I2C is awaiting development -#ifndef I2C_USE_WIRE - #define I2C_USE_WIRE -#endif -#elif defined(ARDUINO_TEENSY40) -#define ARDUINO_TYPE "TEENSY40" -#undef USB_SERIAL -#define USB_SERIAL SerialUSB -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif -// Teensy support for native I2C is awaiting development -#ifndef I2C_USE_WIRE - #define I2C_USE_WIRE -#endif -#elif defined(ARDUINO_TEENSY41) -#define ARDUINO_TYPE "TEENSY41" -#undef USB_SERIAL -#define USB_SERIAL SerialUSB -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif -// Teensy support for native I2C is awaiting development -#ifndef I2C_USE_WIRE + #define ARDUINO_TYPE "TEENSY3132" + #undef USB_SERIAL + #define USB_SERIAL SerialUSB + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif + // Teensy support for native I2C is awaiting development + #ifndef I2C_USE_WIRE #define I2C_USE_WIRE -#endif + #endif +#elif defined(ARDUINO_TEENSY35) + #define ARDUINO_TYPE "TEENSY35" + #undef USB_SERIAL + #define USB_SERIAL SerialUSB + // Teensy support for I2C is awaiting development + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif + // Teensy support for native I2C is awaiting development + #ifndef I2C_USE_WIRE + #define I2C_USE_WIRE + #endif +#elif defined(ARDUINO_TEENSY36) + #define ARDUINO_TYPE "TEENSY36" + #undef USB_SERIAL + #define USB_SERIAL SerialUSB + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif + // Teensy support for native I2C is awaiting development + #ifndef I2C_USE_WIRE + #define I2C_USE_WIRE + #endif +#elif defined(ARDUINO_TEENSY40) + #define ARDUINO_TYPE "TEENSY40" + #undef USB_SERIAL + #define USB_SERIAL SerialUSB + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif + // Teensy support for native I2C is awaiting development + #ifndef I2C_USE_WIRE + #define I2C_USE_WIRE + #endif +#elif defined(ARDUINO_TEENSY41) + #define ARDUINO_TYPE "TEENSY41" + #undef USB_SERIAL + #define USB_SERIAL SerialUSB + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif + // Teensy support for native I2C is awaiting development + #ifndef I2C_USE_WIRE + #define I2C_USE_WIRE + #endif #elif defined(ARDUINO_ARCH_ESP8266) -#define ARDUINO_TYPE "ESP8266" -#warning "ESP8266 platform untested, you are on your own" + #define ARDUINO_TYPE "ESP8266" + #warning "ESP8266 platform untested, you are on your own" #elif defined(ARDUINO_ARCH_ESP32) -#define ARDUINO_TYPE "ESP32" -#ifndef DISABLE_EEPROM -#define DISABLE_EEPROM -#endif + #define ARDUINO_TYPE "ESP32" + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif #elif defined(ARDUINO_ARCH_SAMD) -#define ARDUINO_TYPE "SAMD21" -#undef USB_SERIAL -#define USB_SERIAL SerialUSB -// SAMD no EEPROM by default -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif + #define ARDUINO_TYPE "SAMD21" + #undef USB_SERIAL + #define USB_SERIAL SerialUSB + // SAMD no EEPROM by default + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif #elif defined(ARDUINO_ARCH_STM32) -#define ARDUINO_TYPE "STM32" -// STM32 no EEPROM by default -#ifndef DISABLE_EEPROM - #define DISABLE_EEPROM -#endif -// STM32 support for native I2C is awaiting development -#ifndef I2C_USE_WIRE - #define I2C_USE_WIRE -#endif + #define ARDUINO_TYPE "STM32" + // STM32 no EEPROM by default + #ifndef DISABLE_EEPROM + #define DISABLE_EEPROM + #endif + // STM32 support for native I2C is awaiting development + #ifndef I2C_USE_WIRE + #define I2C_USE_WIRE + #endif /* TODO when ready #elif defined(ARDUINO_ARCH_RP2040) -#define ARDUINO_TYPE "RP2040" + #define ARDUINO_TYPE "RP2040" */ #else -#define CPU_TYPE_ERROR + #define CPU_TYPE_ERROR #endif // replace board type if provided by compiler