We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88816bf commit dae5f01Copy full SHA for dae5f01
1 file changed
ftduino/libraries/Ftduino/Ftduino.cpp
@@ -447,6 +447,10 @@ void Ftduino::output_init() {
447
#endif
448
#if defined(OUTPUT_DRIVER_AUTO) || defined(OUTPUT_DRIVER_DRV8908)
449
{
450
+ // increase SPI speed to 4 Mhz as PWM is implemented by hardware,
451
+ // no SPI IRQ is needed and thus the SPI speed does not affect performance
452
+ SPCR &= ~((1<<SPR1) | (1<<SPR0));
453
+
454
// give chip a millisecond to come out of reset/sleep
455
delay(1);
456
0 commit comments