wemos / Arduino_XI

Arduino core for WEMOS XI Boards
41 stars 14 forks source link

#define LED_BUILTIN 12 #define NUM_DIGITAL_PINS 14 etc #3

Open kenneth558 opened 6 years ago

kenneth558 commented 6 years ago

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

lazlyhu commented 5 years ago

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.