eynarcalle / glcd-arduino

Automatically exported from code.google.com/p/glcd-arduino
0 stars 0 forks source link

GLCDdiags should report Arduino Revision. #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
GLCDDiags should report which version of Arduino was used to build it.
It is a simple define that can be printed.

Original issue reported on code.google.com by bperry...@gmail.com on 24 Mar 2011 at 6:52

GoogleCodeExporter commented 8 years ago
One problem with reporting Arduino revisions is that the Arduino developers
were very sloppy and careless in their use of the revision define.
The 0017 revision number is wrong (it reports 16) and on 0018,
if code is not built using the IDE the revision number is not even available.

The ARDUINO revision define is pretty much worthless.

So I'm mot sure it makes sense to put in code to print the arduino revision
given the value is wrong on 0017 and you are not guaranteed to have it available
in 0018.

Sure would have been nice though.

Original comment by bperry...@gmail.com on 24 Mar 2011 at 6:53

GoogleCodeExporter commented 8 years ago
An alternative would be to just toss in an output print for the ARDUINO value
if it is defined. 

Original comment by bperry...@gmail.com on 24 Mar 2011 at 6:54

GoogleCodeExporter commented 8 years ago
diags will now report the arduino revision based on the define ARDUINO
if it exists.

Original comment by bperry...@gmail.com on 26 Mar 2011 at 6:46