mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
LED_BUILTIN should be a #define (#4276)
* LED_BUILTIN should be a #define deduplicate and hide BUILTIN_LED as a deprecated constant * test for LED_BUILTIN existence * board:espino:variant: rename button macro (naming coherence)
This commit is contained in:
@ -1062,14 +1062,14 @@ def all_flash_size ():
|
||||
def led (default,max):
|
||||
led = collections.OrderedDict([
|
||||
('.menu.led.' + str(default), str(default)),
|
||||
('.menu.led.' + str(default) + '.build.led', '-DUSERLED=' + str(default)),
|
||||
('.menu.led.' + str(default) + '.build.led', '-DLED_BUILTIN=' + str(default)),
|
||||
]);
|
||||
for i in range(0,max):
|
||||
if not i == default:
|
||||
led.update(
|
||||
collections.OrderedDict([
|
||||
('.menu.led.' + str(i), str(i)),
|
||||
('.menu.led.' + str(i) + '.build.led', '-DUSERLED=' + str(i)),
|
||||
('.menu.led.' + str(i) + '.build.led', '-DLED_BUILTIN=' + str(i)),
|
||||
]))
|
||||
return { 'led': led }
|
||||
|
||||
|
Reference in New Issue
Block a user