Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
berrak committed Aug 20, 2022
1 parent 0615f78 commit 87f672b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/MyMacros/MyMacros.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

// Adding this line before the library will output compile time identification.
#define ARCH_IDENTIFY_WARNING
#define BOARD_IDENTIFY_WARNING
#include <MyMacros.h> // This also includes all available 100+ boards from Board Identify.

Expand Down
1 change: 1 addition & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ printlnMatch KEYWORD2
#######################################

BOARD_IDENTIFY_WARNING
ARCH_IDENTIFY_WARNING
BUILD_BOARD
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=MyMacros
version=0.4.1
version=0.5.0
author=Debinix Team <debinixteam@triatagroup.com>
maintainer=Debinix Team <debinixteam@triatagroup.com>
sentence=The Arduino library identifies your unique collection of development boards.
Expand Down
10 changes: 5 additions & 5 deletions src/MyMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,35 @@ struct board;
// Architecture wide macros
#if defined(ARDUINO_ARCH_ESP8266)
#if defined(ARCH_IDENTIFY_WARNING)
#warning "Architecture Matched: (ARDUINO_ARCH_ESP8266)"
#warning "Matched Architecture: (ARDUINO_ARCH_ESP8266)"
#endif

// Architecture macros here

#elif defined(ARDUINO_ARCH_ESP32)
#if defined(ARCH_IDENTIFY_WARNING)
#warning "Architecture Matched: (ARDUINO_ARCH_ESP32)"
#warning "Matched Architecture: (ARDUINO_ARCH_ESP32)"
#endif

// Architecture macros here

#elif defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR)
#if defined(ARCH_IDENTIFY_WARNING)
#warning "Architecture Matched: (ARDUINO_ARCH_AVR) or (ARDUINO_ARCH_MEGAAVR)"
#warning "Matched Architecture: (ARDUINO_ARCH_AVR) or (ARDUINO_ARCH_MEGAAVR)"
#endif

// Architecture macros here

#elif defined(ARDUINO_ARCH_STM32) || defined(ARDUINO_ARCH_ARDUINO_CORE_STM32)
#if defined(ARCH_IDENTIFY_WARNING)
#warning "Architecture Matched: (ARDUINO_ARCH_STM32) or (ARDUINO_ARCH_ARDUINO_CORE_STM32)"
#warning "Matched Architecture: (ARDUINO_ARCH_STM32) or (ARDUINO_ARCH_ARDUINO_CORE_STM32)"
#endif

// Architecture macros here

#elif defined(ARDUINO_ARCH_RP2040)
#if defined(ARCH_IDENTIFY_WARNING)
#warning "Architecture Matched: (ARDUINO_ARCH_RP2040)"
#warning "Matched Architecture: (ARDUINO_ARCH_RP2040)"
#endif

// Architecture macros here
Expand Down

0 comments on commit 87f672b

Please sign in to comment.