Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v returns MCU version from Makefile

  • Loading branch information...
commit 5f844e33ccd02cf04f3340c074953e8c203db277 1 parent c4b4530
WardCunningham authored
Showing with 7 additions and 0 deletions.
  1. +1 −0  Makefile
  2. +6 −0 txtzyme.c
View
1  Makefile
@@ -121,6 +121,7 @@ CSTANDARD = -std=gnu99
# Place -D or -U options here for C sources
CDEFS = -DF_CPU=$(F_CPU)UL
+CDEFS += -DMCU=$(MCU)
# Place -D or -U options here for ASM sources
View
6 txtzyme.c
@@ -211,6 +211,12 @@ void parse(const char *buf) {
case 's':
x = analogRead(x);
break;
+ case 'v':
+ #define QUOTEME_(x) #x
+ #define QUOTEME(x) QUOTEME_(x)
+ send_str(PSTR(QUOTEME(MCU)));
+ send_str(PSTR("\r\n"));
+ break;
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.