88@ SuppressWarnings ("nls" )
99public class Adafruit extends MCUBoard {
1010 public final static String packageURL = "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" ;
11- private static final String AVRArchitectureName = "avr" ;
12- private static final String SAMDArchitectureName = "samd" ;
11+ private static final String AVRArchitectureID = "avr" ;
12+ private static final String SAMDArchitectureID = "samd" ;
1313 //private static final String SAMPlatformName = "Arduino SAM Boards (32-bits ARM Cortex-M3)";
14- private static final String NFR52ArchitectureName = "nRF52 " ;
14+ private static final String NFR52ArchitectureID = "nrf52 " ;
1515 //private static final String XICEDPlatformName = "Adafruit WICED";
1616 public static final String metroM4ID = "adafruit_metro_m4" ;
1717
18- public Adafruit (String architectureName , String boardName ) {
18+ public Adafruit (String architectureID , String boardName ) {
1919
20- myBoardDescriptor = BoardsManager .getBoardDescription ("package_adafruit_index.json" , "adafruit" ,
21- architectureName , boardName , null );
20+ myBoardDescriptor = BoardsManager .getBoardDescription ("package_adafruit_index.json" , "adafruit" , architectureID ,
21+ boardName , null );
2222 if (myBoardDescriptor == null ) {
2323 fail (boardName + " Board not found" );
2424 }
@@ -33,19 +33,19 @@ public Adafruit(BoardDescription boardDesc) {
3333 }
3434
3535 public static MCUBoard feather () {
36- return new Adafruit (NFR52ArchitectureName , "feather52832" );
36+ return new Adafruit (NFR52ArchitectureID , "feather52832" );
3737 }
3838
3939 public static MCUBoard trinket8MH () {
40- return new Adafruit (AVRArchitectureName , "trinket3" );
40+ return new Adafruit (AVRArchitectureID , "trinket3" );
4141 }
4242
4343 public static MCUBoard featherMO () {
44- return new Adafruit (SAMDArchitectureName , "adafruit_feather_m0" );
44+ return new Adafruit (SAMDArchitectureID , "adafruit_feather_m0" );
4545 }
4646
4747 public static MCUBoard metroM4 () {
48- return new Adafruit (SAMDArchitectureName , metroM4ID );
48+ return new Adafruit (SAMDArchitectureID , metroM4ID );
4949 }
5050
5151 @ Override
0 commit comments