File tree 1 file changed +42
-0
lines changed
libraries/Examples/examples/Advanced/DisplayICRevision
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* Author: Nathan Seidle
2
+ Created: October 16th, 2019
3
+ License: MIT. See SparkFun Arduino Apollo3 Project for more information
4
+
5
+ This example demonstrates how to display the revision of the Apollo3.
6
+ See the Ambiq website for errata on each revision: https://ambiqmicro.com/mcu/
7
+ */
8
+ void setup ()
9
+ {
10
+ Serial.begin (115200 );
11
+ delay (10 ); // Wait for any bootloader UART interactions to complete
12
+ Serial.println ();
13
+ Serial.print (" Apollo3 IC revision code: " );
14
+
15
+ if (APOLLO3_A0)
16
+ {
17
+ Serial.print (" A0" );
18
+ }
19
+ else if (APOLLO3_A1)
20
+ {
21
+ Serial.print (" A1" );
22
+ }
23
+ else if (APOLLO3_B0)
24
+ {
25
+ Serial.print (" B0" );
26
+ }
27
+ else if (APOLLO3_GE_B0)
28
+ {
29
+ Serial.print (" Unknown revision but it's greater than B0" );
30
+ }
31
+ else
32
+ {
33
+ Serial.print (" Unknown revision" );
34
+ }
35
+ Serial.println ();
36
+ Serial.println (" All done" );
37
+ }
38
+
39
+ void loop ()
40
+ {
41
+ // Do nothing
42
+ }
You can’t perform that action at this time.
0 commit comments