Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce by experiment to slowest before SWD on teensy burner stops working #18

Merged
merged 1 commit into from
Apr 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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