Add a #define for the library version

This commit is contained in:
Scott Allen 2016-03-01 16:19:27 -05:00
parent c11a359269
commit daa2128252
2 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,12 @@
#include <Print.h> #include <Print.h>
#include <limits.h> #include <limits.h>
// Library version.
// For a version number in the form of x.y.z the value of the define will be
// ((x * 10000) + (y * 100) + (z)) as a decimal number.
// So, it will read as xxxyyzz, with no leading zeros on x.
#define ARDUBOY_LIB_VER 10200
// EEPROM settings // EEPROM settings
#define EEPROM_VERSION 0 #define EEPROM_VERSION 0
#define EEPROM_BRIGHTNESS 1 #define EEPROM_BRIGHTNESS 1
@ -63,7 +69,7 @@ public:
*/ */
// void boot(); // defined in core.cpp // void boot(); // defined in core.cpp
void start() __attribute__ ((deprecated("use begin() instead"))); void start() __attribute__((deprecated)) __attribute__ ((warning("use begin() instead")));
/// Scrolls in the Arduboy logo /// Scrolls in the Arduboy logo
void bootLogo(); void bootLogo();
@ -79,7 +85,7 @@ public:
/// Clears display. /// Clears display.
void clear(); void clear();
void clearDisplay() __attribute__ ((deprecated("use clear() instead"))); void clearDisplay() __attribute__((deprecated)) __attribute__ ((warning("use clear() instead")));
/// Copies the contents of the screen buffer to the screen. /// Copies the contents of the screen buffer to the screen.
/** /**

View File

@ -182,7 +182,7 @@ public:
* LEFT_BUTTON, A_BUTTON, UP_BUTTON, etc. * LEFT_BUTTON, A_BUTTON, UP_BUTTON, etc.
*/ */
uint8_t static getInput(); __attribute__ ((deprecated("use buttonsState() instead"))); uint8_t static getInput(); __attribute__((deprecated)) __attribute__ ((warning("use buttonsState() instead")));
uint8_t static buttonsState(); uint8_t static buttonsState();
// paints 8 pixels (vertically) from a single byte // paints 8 pixels (vertically) from a single byte