diff --git a/version.cpp b/version.cpp new file mode 100644 index 0000000..bd2cde7 --- /dev/null +++ b/version.cpp @@ -0,0 +1,4 @@ +#include "version.h" + +const char VERSION_STRING_PRIVATE [] PROGMEM = "R1.1.1"; +const char* const VERSION_STRING = VERSION_STRING_PRIVATE; \ No newline at end of file diff --git a/version.h b/version.h new file mode 100644 index 0000000..9ce2cef --- /dev/null +++ b/version.h @@ -0,0 +1,9 @@ +#pragma once + +#include + +/* + * VERSION_STRING is a PROGMEM string, so extract it before use, e.g. + * strncpy_P(char_buffer_out,VERSION_STRING,size_of_char_buffer_out); + */ +extern const char* const VERSION_STRING; \ No newline at end of file