Arduino_XI icon indicating copy to clipboard operation
Arduino_XI copied to clipboard

#define LED_BUILTIN 12 #define NUM_DIGITAL_PINS 14 etc

Open kenneth558 opened this issue 7 years ago • 1 comments

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

kenneth558 avatar Feb 28 '18 13:02 kenneth558

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.

lazlyhu avatar Sep 30 '18 13:09 lazlyhu