Arduino_XI
Arduino_XI copied to clipboard
#define LED_BUILTIN 12 #define NUM_DIGITAL_PINS 14 etc
The following defines need to be included where best located:
NO LONGER VALID, SEE FOLLOWING PARAGRAPH
#define LED_BUILTIN 12
#define NUM_DIGITAL_PINS 14
#define u8 uint8_t
#define u16 uint16_t
Due to the following post, I edit the above to become:
#ifndef LED_BUILTIN
#define LED_BUILTIN 12
#endif
#ifndef NUM_DIGITAL_PINS
#define NUM_DIGITAL_PINS 14
#endif
#ifndef u8
#define u8 uint8_t
#endif
#ifndef u16
#define u16 uint16_t
#endif
In my board (LGT Nano) the LED_BUILTIN
is in 13, and it's already defined. I just upload a simple blink sketch used constant LED_BUILTIN
.