1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +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:
david gauchard 2020-10-24 20:39:37 +02:00 committed by GitHub
parent 95fb104562
commit 64def3cd8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4245 additions and 4243 deletions

8476
boards.txt

File diff suppressed because it is too large Load Diff

View File

@ -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/

View File

@ -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)"

View File

@ -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