Hi.
Take 2 for the issue #7 .
Is there a solution to use the pin13 LED on the SparkFun SAMD21 Mini board as a PWM output?
Unfortunately pinPeripheral(13, PIO_TIMER); doesn't help.
Looks like the g_APinDescription have that line cofigured as PWM capable:
// 13 (LED)
{ PORTA, 17, PIO_SERCOM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM), No_ADC_Channel, PWM2_CH1, NOT_ON_TIMER, EXTERNAL_INT_1 }, // TCC2/WO[1]
But analogWrite on that pin do not light the LED.
And it doesn't default to digitalWrite either, so I guess there is something related to timers that should toggle the pin, but can't figure out what exactly should be done to make it work.
I use Sercom2 for I2C and want to use the build-in led on pin13 as a status indication with breathing LED.
Anyone managed to make that work?
Hi.
Take 2 for the issue #7 .
Is there a solution to use the pin13 LED on the SparkFun SAMD21 Mini board as a PWM output?
Unfortunately
pinPeripheral(13, PIO_TIMER);doesn't help.Looks like the
g_APinDescriptionhave that line cofigured as PWM capable:But analogWrite on that pin do not light the LED.
And it doesn't default to digitalWrite either, so I guess there is something related to timers that should toggle the pin, but can't figure out what exactly should be done to make it work.
I use Sercom2 for I2C and want to use the build-in led on pin13 as a status indication with breathing LED.
Anyone managed to make that work?