mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
boards.txt: sort by displayed name (#7670)
* boards.txt: sort by displayed name * reduce diff * use boardlist instead of boards
This commit is contained in:
parent
95fb104562
commit
64def3cd8d
8476
boards.txt
8476
boards.txt
File diff suppressed because it is too large
Load Diff
@ -362,8 +362,8 @@ links:
|
|||||||
- ESP8285 datasheet: https://www.espressif.com/sites/default/files/0a-esp8285_datasheet_en_v1.0_20160422.pdf
|
- ESP8285 datasheet: https://www.espressif.com/sites/default/files/0a-esp8285_datasheet_en_v1.0_20160422.pdf
|
||||||
- Voltage regulator datasheet: http://pdf-datasheet.datasheet.netdna-cdn.com/pdf-down/M/E/6/ME6211-Microne.pdf
|
- Voltage regulator datasheet: http://pdf-datasheet.datasheet.netdna-cdn.com/pdf-down/M/E/6/ME6211-Microne.pdf
|
||||||
|
|
||||||
WeMos D1 R1
|
LOLIN(WeMos) D1 R1
|
||||||
-----------
|
------------------
|
||||||
|
|
||||||
Product page: https://www.wemos.cc/
|
Product page: https://www.wemos.cc/
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
"name": "LOLIN(WEMOS) D1 mini Lite"
|
"name": "LOLIN(WEMOS) D1 mini Lite"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "WeMos D1 R1"
|
"name": "LOLIN(WeMos) D1 R1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ESPino (ESP-12 Module)"
|
"name": "ESPino (ESP-12 Module)"
|
||||||
|
@ -635,7 +635,7 @@ boards = collections.OrderedDict([
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
( 'd1', {
|
( 'd1', {
|
||||||
'name': 'WeMos D1 R1',
|
'name': 'LOLIN(WeMos) D1 R1',
|
||||||
'opts': {
|
'opts': {
|
||||||
'.build.board': 'ESP8266_WEMOS_D1R1',
|
'.build.board': 'ESP8266_WEMOS_D1R1',
|
||||||
'.build.variant': 'd1',
|
'.build.variant': 'd1',
|
||||||
@ -1564,7 +1564,9 @@ def all_boards ():
|
|||||||
print('')
|
print('')
|
||||||
|
|
||||||
missingboards = []
|
missingboards = []
|
||||||
for id in boardlist:
|
boardlistsortedbydisplayedname = [ k for k in sorted(boardlist, key = lambda item: boards[item]['name']) ]
|
||||||
|
sortedrequiredfirst = requiredboards + [ item for item in boardlistsortedbydisplayedname if item not in requiredboards ]
|
||||||
|
for id in sortedrequiredfirst:
|
||||||
if id not in boards:
|
if id not in boards:
|
||||||
missingboards += [ id ];
|
missingboards += [ id ];
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user