1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Allow use of LED16 for generic boards (#6343)

Generic boards can have their LEDs on pins 0...16 inclusive, so ensure
that the range we generate in boards.txt is inclusive.

Fixes #5817
This commit is contained in:
Earle F. Philhower, III
2019-07-25 02:16:04 -07:00
committed by david gauchard
parent aecf113850
commit 34077c03f5
2 changed files with 5 additions and 1 deletions

View File

@ -1327,7 +1327,7 @@ def led (default,max):
('.menu.led.' + str(default), str(default)),
('.menu.led.' + str(default) + '.build.led', '-DLED_BUILTIN=' + str(default)),
]);
for i in range(0,max):
for i in range(0,max+1): # Make range incluside of max (16), since there are really 16 GPIOS not 15
if not i == default:
led.update(
collections.OrderedDict([