Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions video/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef VERSION_H
#define VERSION_H

#define VERSION_MAJOR 2
#define VERSION_MINOR 0
#define VERSION_PATCH 0
#define VERSION_CANDIDATE 1 // Optional
#define VERSION_TYPE "Alpha " // RC, Alpha, Beta, etc.

#define VERSION_VARIANT "Quark"

#endif // VERSION_H
15 changes: 8 additions & 7 deletions video/video.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@
#include <HardwareSerial.h>
#include <fabgl.h>

#define VERSION 1
#define REVISION 4
#define RC 2

#define DEBUG 0 // Serial Debug Mode: 1 = enable
#define SERIALKB 0 // Serial Keyboard: 1 = enable (Experimental)
#define SERIALBAUDRATE 115200

#include "agon.h" // Configuration file
#include "version.h" // Version information
#include "agon_keyboard.h" // Keyboard support
#include "agon_audio.h" // Audio support
#include "agon_ttxt.h"
Expand Down Expand Up @@ -163,9 +160,13 @@ void do_keyboard_terminal() {
// The boot screen
//
void boot_screen() {
printFmt("Agon Quark VDP Version %d.%02d", VERSION, REVISION);
#if RC > 0
printFmt(" RC%d", RC);
printFmt("Agon %s VDP Version %d.%d.%d", VERSION_VARIANT, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
#if VERSION_CANDIDATE > 0
printFmt(" %s%d", VERSION_TYPE, VERSION_CANDIDATE);
#endif
// Show build if defined (intended to be auto-generated string from build script from git commit hash)
#ifdef VERSION_BUILD
printFmt(" Build %s", VERSION_BUILD);
#endif
printFmt("\n\r");
}
Expand Down