adafruit / ArduinoCore-samd

115 stars 119 forks source link

update LED_BUILTIN for matrixportal_m4 #270

Closed mdonoughe closed 3 years ago

mdonoughe commented 3 years ago

I was having some problems with my Matrix Portal M4 project and I added some debug code to set the LED, but it didn't work. I loaded the Arduino example LED blink sketch, but that didn't work either.

It looks like originally the Matrix Portal M4 was not going to have an LED and then later one was added, but the value of LED_BUILTIN was not updated. According to variant.cpp it should be 13 (PORTA 14), but LED_BUILTIN was left using the old value 47 (used to be PORTA 15, disconnected on the schematic) which is now labeled as LIS IRQ (PORTA 27). With these changes, my LED is blinking.