Skip to content

Commit

Permalink
reduce by experiement to slowest before SWD on teensy burner stops wo…
Browse files Browse the repository at this point in the history
…rking adafruit#16
  • Loading branch information
ladyada committed Apr 7, 2018
1 parent c91ce29 commit 8a798db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion inc/neopixel.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ static inline void neopixel_send_buffer(const uint8_t *ptr, int numBytes) {

PINOP(BOARD_NEOPIXEL_PIN, DIRSET);

// turn off mux too, needed for metro m0 but no harm done!
#if (USB_VID == 0x239a) && (USB_PID == 0x0013) // Adafruit Metro M0
// turn off mux too, needed for metro m0
PORT->Group[BOARD_NEOPIXEL_PIN / 32].PINCFG[BOARD_NEOPIXEL_PIN % 32].reg =
(uint8_t)(PORT_PINCFG_INEN);
#endif

PINOP(BOARD_NEOPIXEL_PIN, OUTCLR);
delay(1);
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ int main(void) {

#if (USB_VID == 0x239a) && (USB_PID == 0x0013) // Adafruit Metro M0
// Delay a bit so SWD programmer can have time to attach.
delay(100);
delay(15);
#endif
led_init();

Expand Down

0 comments on commit 8a798db

Please sign in to comment.