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:
@ -71,4 +71,11 @@ static const uint8_t A0 = PIN_A0;
|
||||
#define SERIAL_PORT_HARDWARE Serial
|
||||
#define SERIAL_PORT_HARDWARE_OPEN Serial1
|
||||
|
||||
#ifdef LED_BUILTIN
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
const int BUILTIN_LED __attribute__((deprecated, weak)) = LED_BUILTIN;
|
||||
#endif
|
||||
|
||||
#endif /* GENERIC_COMMON_H */
|
||||
|
Reference in New Issue
Block a user