@@ -65,6 +65,12 @@ public static Collection examples() {
65
65
fail ("uno Board not found" );
66
66
return null ;
67
67
}
68
+ BoardDescriptor EsploraBoardid = BoardsManager .getBoardID ("package_index.json" , "arduino" , "Arduino AVR Boards" ,
69
+ "esplora" , myOptions );
70
+ if (EsploraBoardid == null ) {
71
+ fail ("Esplora Board not found" );
72
+ return null ;
73
+ }
68
74
69
75
LinkedList <Object []> examples = new LinkedList <>();
70
76
TreeMap <String , IPath > exampleFolders = BoardsManager .getAllExamples (null );
@@ -81,6 +87,11 @@ public static Collection examples() {
81
87
if (isExampleOkForUno (curexample .getKey ())) {
82
88
Object [] theData = new Object [] { "Uno :" + curexample .getKey (), unoBoardid , codeDescriptor };
83
89
90
+ examples .add (theData );
91
+ }
92
+ if (isExampleOkForEsplora (curexample .getKey ())) {
93
+ Object [] theData = new Object [] { "Esplora :" + curexample .getKey (), EsploraBoardid , codeDescriptor };
94
+
84
95
examples .add (theData );
85
96
}
86
97
}
@@ -97,7 +108,7 @@ private static boolean isExampleOkForUno(String key) {
97
108
"examples-09.USB-Mouse-JoystickMouseControl" , };
98
109
if (key .startsWith ("Esploraexamples" ))
99
110
return false ;
100
- if (key .startsWith ("TFTexamples-Esplora-EsploraTFTTemp " ))
111
+ if (key .startsWith ("TFTexamples-Esplora-Esplora " ))
101
112
return false ;
102
113
103
114
if (key .contains ("Firmata" ))
@@ -113,13 +124,24 @@ private static boolean isExampleOkForLeonardo(String key) {
113
124
"Firmataexamples-StandardFirmataWiFi" };
114
125
if (key .contains ("Firmata" ))
115
126
return false ;
116
- if (key .startsWith ("TFTexamples-Esplora-EsploraTFTTemp " ))
127
+ if (key .startsWith ("TFTexamples-Esplora-Esplora " ))
117
128
return false ;
118
129
if (Arrays .asList (notOkForLeonardo ).contains (key ))
119
130
return false ;
120
131
return true ; // default everything is fine
121
132
}
122
133
134
+ private static boolean isExampleOkForEsplora (String key ) {
135
+ final String [] notOkForEsplora = { "Firmataexamples-StandardFirmataBLE" ,
136
+ "Firmataexamples-StandardFirmataChipKIT" , "Firmataexamples-StandardFirmataEthernet" ,
137
+ "Firmataexamples-StandardFirmataWiFi" };
138
+ if (key .startsWith ("TFTexamples-Esplora-Esplora" ))
139
+ return false ;
140
+ if (Arrays .asList (notOkForEsplora ).contains (key ))
141
+ return false ;
142
+ return true ; // default everything is fine
143
+ }
144
+
123
145
/*
124
146
* In new new installations (of the Sloeber development environment) the
125
147
* installer job will trigger downloads These mmust have finished before we
0 commit comments