Skip to content

Commit

Permalink
Merge pull request #18 from ladyada/master
Browse files Browse the repository at this point in the history
reduce by experiment to slowest before SWD on teensy burner stops working
  • Loading branch information
dhalbert authored Apr 7, 2018
2 parents c91ce29 + 8a798db commit 07f1c54
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 07f1c54

Please sign in to comment.